diff options
Diffstat (limited to 'dselect/update')
-rwxr-xr-x | dselect/update | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dselect/update b/dselect/update index ca507c4c6..3260278b6 100755 --- a/dselect/update +++ b/dselect/update @@ -7,9 +7,11 @@ APTGET="/usr/bin/apt-get" APTCACHE="/usr/bin/apt-cache" DPKG="/usr/bin/dpkg" CACHEDIR="/var/cache/apt" +PROMPT="no" RES=`apt-config shell OPTS DSelect::UpdateOptions \ DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get \ - APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache` + APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache \ + PROMPT DSelect::PromptAfterUpdate` eval $RES $APTGET $OPTS update @@ -19,4 +21,9 @@ rm -f /var/cache/apt/available $APTCACHE dumpavail > $CACHEDIR/available $DPKG --update-avail $CACHEDIR/available rm -f $CACHEDIR/available + +if [ $PROMPT == "yes" ]; then + echo "Press enter to continue." && read RES; +fi + exit 0 |