diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-13 01:08:40 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-13 01:08:40 -0500 |
commit | 05fc5ece05f10b593c378c0b5f1170107dcfe1b6 (patch) | |
tree | afd7d575a485c94bee1784ac250c6e141d94d2ab /src/librefetch | |
parent | e4cfe0d5a5661e20d5b0d4ce79b482b4bf3f2bd5 (diff) |
`return $?` can be written simply as `return`
Diffstat (limited to 'src/librefetch')
-rw-r--r-- | src/librefetch/librefetch-install.in | 2 | ||||
-rwxr-xr-x | src/librefetch/librefetchdir/makepkg.gen | 2 |
2 files changed, 2 insertions, 2 deletions
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:| |