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