修正 install_pkg 的返回值
This commit is contained in:
parent
b617858c89
commit
6164b0c301
@ -291,7 +291,8 @@ install_pkg() {
|
||||
pacman -Syu --noconfirm $pkgs ||
|
||||
apk add $pkgs
|
||||
} 2>/dev/null
|
||||
break
|
||||
# break 返回值始终为 0
|
||||
return
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user