X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=dec.sh;h=d5c27095f62045fe824fdf7907d56e31c4db4809;hb=e3c71df2373938b7b868e04630bb29158f535b85;hp=bbad6c675c8b3f04a3752ed7b0046f750c4617de;hpb=0b2f05222a6101e555151c5751c3b5ec03eb51bb;p=cmccabe-bin diff --git a/dec.sh b/dec.sh index bbad6c6..d5c2709 100755 --- a/dec.sh +++ b/dec.sh @@ -5,7 +5,9 @@ die() { exit 1 } -[ "x${PASS}" = "x" ] && die "you must set PASS to the password" +if [[ "x${PASS}" = "x" ]]; then + read -s -p "enter password: " PASS +fi RET=0 for FILE in "$@"; do