Update choosepkg and chooseaurpg return value
This commit is contained in:
parent
a918a72413
commit
4f842a48e5
1 changed files with 4 additions and 4 deletions
8
lib
8
lib
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue