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[@]}" \
|
"${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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue