u
This commit is contained in:
@@ -27,7 +27,7 @@ for input_file in ${input_files[@]}; do
|
|||||||
|
|
||||||
# if input file has not path specified
|
# if input file has not path specified
|
||||||
if [[ ${input_file} != *"/"* ]]; then
|
if [[ ${input_file} != *"/"* ]]; then
|
||||||
input_file="${cwd}/${input_file}"
|
input_file="${cwd}/${input_file}"
|
||||||
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
|
||||||
@@ -44,7 +44,7 @@ for input_file in ${input_files[@]}; do
|
|||||||
if [[ -f "${new_file}" ]] || [[ -d "${new_file}" ]] ; then
|
if [[ -f "${new_file}" ]] || [[ -d "${new_file}" ]] ; then
|
||||||
trash-put "${new_file}"
|
trash-put "${new_file}"
|
||||||
else
|
else
|
||||||
echo "error: unable to delete ${new_file}"
|
echo "error: unable to delete '${new_file}'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user