Author: jgg Date: 1999-01-11 23:56:11 GMT Fixed bashisms
@ -12,7 +12,7 @@ eval $RES
set +e
# Yes/No Prompter
function yesno() {
yesno() {
# $1 = prompt
# $2 = default(y)
local ans def defp
@ -22,7 +22,7 @@ $APTCACHE dumpavail > $CACHEDIR/available
$DPKG --update-avail $CACHEDIR/available
rm -f $CACHEDIR/available
if [ $PROMPT == "yes" ]; then
if [ $PROMPT = "yes" ]; then
echo "Press enter to continue." && read RES;
fi