diff options
author | Allan McRae <allan@archlinux.org> | 2011-02-05 01:24:58 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-06 19:52:59 +0100 |
commit | bb071f4eb20810216b731f6792a32c148eb78931 (patch) | |
tree | eccd7085fc977fb6baaa6a67212cd11b5e8fe35e /scripts | |
parent | 3cf870eda5842fb07e384026c7dc4279d2c26aca (diff) | |
download | pacman-bb071f4eb20810216b731f6792a32c148eb78931.tar.gz pacman-bb071f4eb20810216b731f6792a32c148eb78931.tar.xz |
makepkg: more bash-3.2 compatibility
Adding the "|| true" to the subshell prevents bash-3.2 setting off the
error_trap but requires changing the if statement.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 13415fbe..001178ad 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -507,8 +507,8 @@ download_sources() { local netfile for netfile in "${source[@]}"; do - local file - if file=$(get_filepath "$netfile"); then + local file=$(get_filepath "$netfile" || true) + if [[ -n "$file" ]]; then msg2 "$(gettext "Found %s")" "${file##*/}" ln -sf "$file" "$srcdir/" continue |