iiiiiiiiiiii
iiiiiiiiii
iiiiiiiiii
The error message is coming from here:
Perhaps you meant:
if [ ! -d "$HOME/deleted" ] ; then
mkdir "$HOME/deleted"
Ps. You could have used your variable $TRASH for consistency.
Pps. It is not advisible to call a script test . It is the name of a unix command.
Using metyl's suggestions:
if ! [ -d "$TRASH" ]
then
mkdir $TRASH
Then you have a errror around line 120:
function verbose () {
#if [ "$FLAG_V" = "v" ] ; then # Comment out both lines and replace by:
if [[ "$FLAG_V" = "vV" ]]
then
echo "removing \`$1'"
fi
}
The syntax for all the function lines looks wrong to me. It's a mixture of two alternative syntaxes.