More securely quote $BB_FILES

This commit is contained in:
tlimoncelli@stackexchange.com
2015-02-10 18:54:47 -05:00
parent de3ec22655
commit 86fe5ae352
3 changed files with 7 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ source ${blackbox_home}/_blackbox_common.sh
change_to_root
echo '========== FILES BEING SHREDDED:'
for i in $(<$BB_FILES) ; do
for i in $(<"$BB_FILES") ; do
unencrypted_file=$(get_unencrypted_filename "$i")
encrypted_file=$(get_encrypted_filename "$i")
if [[ -f "$unencrypted_file" ]]; then