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>
This commit is contained in:
Allan McRae 2011-02-05 10:24:58 +10:00 committed by Dan McGee
parent 3cf870eda5
commit bb071f4eb2
1 changed files with 2 additions and 2 deletions

View File

@ -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