summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-02-13 01:08:40 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-02-13 01:08:40 -0500
commit05fc5ece05f10b593c378c0b5f1170107dcfe1b6 (patch)
treeafd7d575a485c94bee1784ac250c6e141d94d2ab /src
parente4cfe0d5a5661e20d5b0d4ce79b482b4bf3f2bd5 (diff)
`return $?` can be written simply as `return`
Diffstat (limited to 'src')
-rw-r--r--src/lib/blacklist.sh2
-rw-r--r--src/librefetch/librefetch-install.in2
-rwxr-xr-xsrc/librefetch/librefetchdir/makepkg.gen2
-rwxr-xr-xsrc/pkgbuild-summarize-nonfree3
4 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/blacklist.sh b/src/lib/blacklist.sh
index 0a3cc39..5654f93 100644
--- a/src/lib/blacklist.sh
+++ b/src/lib/blacklist.sh
@@ -34,7 +34,7 @@ blacklist-cat() {
local file="$XDG_CACHE_HOME/libretools/blacklist.txt"
if ! [[ -e $file ]]; then
# exit on failure, whether set -e or not
- blacklist-update || return $?
+ blacklist-update || return
fi
blacklist-normalize < "$file"
}
diff --git a/src/librefetch/librefetch-install.in b/src/librefetch/librefetch-install.in
index 23c1928..54ffad4 100644
--- a/src/librefetch/librefetch-install.in
+++ b/src/librefetch/librefetch-install.in
@@ -62,7 +62,7 @@ post_install() {
print ":: %s: ... but it's an old version" "${0##*/}"
pre_remove "$file"
post_install "$file"
- return $?
+ return
fi
done
else
diff --git a/src/librefetch/librefetchdir/makepkg.gen b/src/librefetch/librefetchdir/makepkg.gen
index 8928d91..3655e7f 100755
--- a/src/librefetch/librefetchdir/makepkg.gen
+++ b/src/librefetch/librefetchdir/makepkg.gen
@@ -30,7 +30,7 @@
# - take the files that would be included in the tarball, and use
# find/sort/--files-from to order them for bsdtar
s/bsdtar(.*) - ([^|]*) \|/find \2 -print0 | LC_ALL=C sort --zero-terminated | bsdtar --null --files-from - --format=ustar --no-recursion \1 - |/
- s/create_signature .*/&; return $?/ # do not procede to create symlinks
+ s/create_signature .*/&; return/ # do not procede to create symlinks
}
s|Making package:|Making source:|
diff --git a/src/pkgbuild-summarize-nonfree b/src/pkgbuild-summarize-nonfree
index 1e39e87..749617b 100755
--- a/src/pkgbuild-summarize-nonfree
+++ b/src/pkgbuild-summarize-nonfree
@@ -67,8 +67,7 @@ main() {
warning() { :; }
fi
- parse $1;
- return $?
+ parse "$1"
}
parse() {