From f5049e9ec9a5fe1a98663174bc659b56a6871e95 Mon Sep 17 00:00:00 2001 From: Colin P. Mccabe Date: Fri, 4 Aug 2017 16:31:57 -0700 Subject: [PATCH] dec.sh: add password prompt --- dec.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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 -- 1.6.6.rc1.39.g9a42