From 05fc5ece05f10b593c378c0b5f1170107dcfe1b6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 13 Feb 2017 01:08:40 -0500 Subject: `return $?` can be written simply as `return` --- src/librefetch/librefetch-install.in | 2 +- src/librefetch/librefetchdir/makepkg.gen | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librefetch') 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:| -- cgit v1.2.2