Be more secure in the use of "read"
This commit is contained in:
committed by
tlimoncelli@stackexchange.com
parent
eb96b6d1fc
commit
b5c778a08e
@@ -9,7 +9,7 @@ set -e
|
||||
for param in """$@""" ; do
|
||||
unencrypted_file=$(get_unencrypted_filename "$param")
|
||||
if [[! is_on_cryptlist "$param" ]] && [[! is_on_cryptlist "$unencrypted_file" ]] ; then
|
||||
read -p "Encrypt file $param? (y/n) " ans
|
||||
read -r -p "Encrypt file $param? (y/n) " ans
|
||||
case "$ans" in
|
||||
y* | Y*)
|
||||
blackbox_register_new_file "$param"
|
||||
|
||||
Reference in New Issue
Block a user