u
This commit is contained in:
@@ -23,6 +23,7 @@ cwd=$(pwd)
|
|||||||
#echo "sync_dir: ${sync_dir}"
|
#echo "sync_dir: ${sync_dir}"
|
||||||
#echo "cwd: ${cwd}"
|
#echo "cwd: ${cwd}"
|
||||||
#echo
|
#echo
|
||||||
|
echo $@ >> /home/poq/syncDir/0_downloads/tp.log
|
||||||
|
|
||||||
# loop through all files to delete
|
# loop through all files to delete
|
||||||
for input_file in "$@"; do
|
for input_file in "$@"; do
|
||||||
@@ -44,10 +45,10 @@ for input_file in "$@"; do
|
|||||||
new_file=${input_file//$sync_dir_sym/$sync_dir}
|
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}"
|
#trash-put "${new_file}"
|
||||||
#echo "${new_file}"
|
echo "${new_file}"
|
||||||
else
|
else
|
||||||
echo "error: unable to delete \"${new_file}\"" > /home/poq/syncDir/0_downloads/output.log
|
echo "error: unable to delete \"${new_file}\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user