X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/7a1b1f8bd649113e99ecef0489e2f2194e283d1e..f3bcc38396ab3a7ad5c2e299a5f4e036b2cd06b3:/dselect/install diff --git a/dselect/install b/dselect/install index 7c4237458..db96a8055 100755 --- a/dselect/install +++ b/dselect/install @@ -5,14 +5,14 @@ CLEAN="auto" OPTS="-f" APTGET="/usr/bin/apt-get" DPKG="/usr/bin/dpkg" -sh -e +set -e RES=`apt-config shell CLEAN DSelect::Clean OPTS DSelect::Options \ DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get` eval $RES -sh +e +set +e # Yes/No Prompter -function yesno() { +yesno() { # $1 = prompt # $2 = default(y) local ans def defp @@ -37,7 +37,7 @@ function yesno() { echo $ans | tr YN yn } -#$APTGET $OPTS dselect-upgrade +$APTGET $OPTS dselect-upgrade RES=$? # 1 means the user choose no at the prompt