mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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:
parent
3cf870eda5
commit
bb071f4eb2
@ -507,8 +507,8 @@ download_sources() {
|
|||||||
|
|
||||||
local netfile
|
local netfile
|
||||||
for netfile in "${source[@]}"; do
|
for netfile in "${source[@]}"; do
|
||||||
local file
|
local file=$(get_filepath "$netfile" || true)
|
||||||
if file=$(get_filepath "$netfile"); then
|
if [[ -n "$file" ]]; then
|
||||||
msg2 "$(gettext "Found %s")" "${file##*/}"
|
msg2 "$(gettext "Found %s")" "${file##*/}"
|
||||||
ln -sf "$file" "$srcdir/"
|
ln -sf "$file" "$srcdir/"
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user