From 40de837317a9607272e2753731d1910a60dcb63c Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Tue, 10 Mar 2015 22:12:42 -0400 Subject: [PATCH] added --- scriptTemplate.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scriptTemplate.sh b/scriptTemplate.sh index ecd3b5a..2a945a5 100755 --- a/scriptTemplate.sh +++ b/scriptTemplate.sh @@ -8,6 +8,7 @@ version="1.0.0" # Sets version variable for this script scriptTemplateVersion="1.1.1" # Version of scriptTemplate.sh that this script is based on # v.1.1.0 - Added 'debug' option # v.1.1.1 - Moved all shared variables to Utils +# - Added $PASS variable when -p is passed # # A Bash script boilerplate. Allows for common functions, logging, tmp # file creation, CL option passing, and more. @@ -167,7 +168,8 @@ while [[ $1 = -?* ]]; do -h|--help) usage >&2; safeExit ;; --version) echo "$(basename $0) $version"; safeExit ;; -u|--username) shift; username=$1 ;; - -p|--password) shift; password=$1 ;; + -p|--password) shift; echo "Enter Pass: "; stty -echo; read PASS; stty echo; + echo ;; -v|--verbose) verbose=1 ;; -l|--log) printLog=1 ;; -q|--quiet) quiet=1 ;;