Update choosepkg and chooseaurpg return value

This commit is contained in:
MatMoul 2016-04-09 03:13:53 +02:00
parent a918a72413
commit 4f842a48e5

8
lib
View file

@ -84,13 +84,13 @@ choosepkg(){
"${options[@]}" \ "${options[@]}" \
3>&1 1>&2 2>&3) 3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
exit 1 return 1
fi fi
for itm in $sel; do for itm in $sel; do
pkg="$pkg $(echo $itm | sed 's/"//g')" pkg="$pkg $(echo $itm | sed 's/"//g')"
done done
instpkg "$pkg" "$aurpkg" instpkg "$pkg" "$aurpkg"
exit 0 return 0
} }
@ -117,13 +117,13 @@ chooseaurpkg(){
"${options[@]}" \ "${options[@]}" \
3>&1 1>&2 2>&3) 3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
exit 1 return 1
fi fi
for itm in $sel; do for itm in $sel; do
aurpkg="$aurpkg $(echo $itm | sed 's/"//g')" aurpkg="$aurpkg $(echo $itm | sed 's/"//g')"
done done
instpkg "$pkg" "$aurpkg" instpkg "$pkg" "$aurpkg"
exit 0 return 0
} }