diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-03-28 18:48:29 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-04-20 00:23:25 -0400 |
commit | 223818018df7b8763726e7ce6b1bc0fbaed74f67 (patch) | |
tree | fa245147570756b8f5653f91c8113cdacaa35eea /checkpkg.in | |
parent | 36f27d6d0b745f8e05f68961e56b899cf9ef2258 (diff) | |
download | devtools32-223818018df7b8763726e7ce6b1bc0fbaed74f67.tar.xz |
Make purely stylistic changes to make shellcheck happier.
These are purely stylistic changes that make shellcheck complain less.
This does NOT include things like quoting currently unquoted variables.
Diffstat (limited to 'checkpkg.in')
-rw-r--r-- | checkpkg.in | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/checkpkg.in b/checkpkg.in index ec58ff6..c805729 100644 --- a/checkpkg.in +++ b/checkpkg.in @@ -39,11 +39,8 @@ for _pkgname in "${pkgname[@]}"; do ln -s "$pkgfile" "$TEMPDIR" - pkgurl=$(pacman -Spdd --print-format '%l' --noconfirm "$_pkgname") - - if [[ $? -ne 0 ]]; then + pkgurl=$(pacman -Spdd --print-format '%l' --noconfirm "$_pkgname") || die "Couldn't download previous package for %s." "$_pkgname" - fi oldpkg=${pkgurl##*://*/} |