From 957efe7a1307e62d2def0135ce3156ffc6e4b25a Mon Sep 17 00:00:00 2001 From: committer Date: Mon, 10 Jun 2024 21:39:19 -0500 Subject: [PATCH] u --- dots/bin/tp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/bin/tp.sh b/dots/bin/tp.sh index afdedd3..10e52c5 100755 --- a/dots/bin/tp.sh +++ b/dots/bin/tp.sh @@ -27,7 +27,7 @@ for input_file in ${input_files[@]}; do # if input file has not path specified if [[ ${input_file} != *"/"* ]]; then - input_file=${cwd}/${input_file} + input_file="${cwd}/${input_file}" fi # substitute parts of the old path, from using the symlink folder, to the non-symlink folder @@ -41,7 +41,7 @@ for input_file in ${input_files[@]}; do # new_file=${original_string//old_substring/new_substring} new_file=${input_file//$sync_dir_sym/$sync_dir} - if [[ -f ${new_file} ]] || [[ -d ${new_file} ]] ; then + if [[ -f "${new_file}" ]] || [[ -d "${new_file}" ]] ; then trash-put "${new_file}" else echo "error: unable to delete ${new_file}"