u
This commit is contained in:
@@ -44,8 +44,8 @@ for input_file in "$@"; do
|
||||
#echo "$line" >> ${log_file}
|
||||
|
||||
# if input file has no path specified
|
||||
if [[ ${input_file} != *"/"* ]]; then
|
||||
input_file="${cwd}/${input_file}"
|
||||
if [[ ${line} != *"/"* ]]; then
|
||||
line="${cwd}/${line}"
|
||||
fi
|
||||
|
||||
# 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.
|
||||
|
||||
# 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
|
||||
#trash-put "${new_file}"
|
||||
|
||||
Reference in New Issue
Block a user