From 223818018df7b8763726e7ce6b1bc0fbaed74f67 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 28 Mar 2017 18:48:29 -0400 Subject: 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. --- checkpkg.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'checkpkg.in') 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##*://*/} -- cgit v1.2.3-70-g09d2