add debug and confirm #9

Merged
hippoz merged 5 commits from Ohio2/aps:master into master 2021-08-26 16:31:30 +03:00
Showing only changes of commit 3967b897df - Show all commits

5
aps
View file

@ -14,7 +14,7 @@ else
locpkg_database="${install_root}/var/aps/repos"
lock="${install_root}/var/aps/lock"
official="https://git.hippoz.xyz/alnux/repo"
debug=off
debug=off
fi
if [ ${debug} = on ]; then
set -x
@ -29,8 +29,7 @@ confirm(){
read prompt
if [[ ${prompt} = [nN] ]]; then
die "User said no. Exiting..."
elif [[ ${prompt} = [yY] ]]; then
else
elif [[ ${prompt} != [yY] ]]; then
die "User gave invalid input. Exiting..."
fi
}