This commit is contained in:
committer
2024-06-12 18:09:09 -05:00
parent 10cf26725b
commit a038111ed3

View File

@@ -44,8 +44,8 @@ for input_file in "$@"; do
#echo "$line" >> ${log_file} #echo "$line" >> ${log_file}
# if input file has no path specified # if input file has no path specified
if [[ ${input_file} != *"/"* ]]; then if [[ ${line} != *"/"* ]]; then
input_file="${cwd}/${input_file}" line="${cwd}/${line}"
fi fi
# substitute parts of the old path, from using the symlink folder, to the non-symlink folder # substitute parts of the old path, from using the symlink folder, to the non-symlink folder
@@ -57,7 +57,7 @@ for input_file in "$@"; do
# no replacemant should be done. # no replacemant should be done.
# new_file=${original_string//old_substring/new_substring} # new_file=${original_string//old_substring/new_substring}
new_file=${input_file//$sync_dir_sym/$sync_dir} new_file=${line//$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}" #trash-put "${new_file}"