Be more secure in the use of "read"
This commit is contained in:
committed by
tlimoncelli@stackexchange.com
parent
eb96b6d1fc
commit
b5c778a08e
@@ -14,7 +14,7 @@ set -e
|
||||
_determine_vcs_base_and_type # Sets VCS_TYPE
|
||||
|
||||
if [[ $1 != 'yes' ]]; then
|
||||
read -p "Enable blackbox for this $VCS_TYPE repo? (yes/no) " ans
|
||||
read -r -p "Enable blackbox for this $VCS_TYPE repo? (yes/no) " ans
|
||||
if [[ $ans = 'no' || $ans = 'n' || $ans = '' ]]; then
|
||||
echo 'Exiting...'
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user