diff --git a/lib b/lib index a882718..b3de7b3 100644 --- a/lib +++ b/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 }