Hi,
I want to create a little bash-script, that creats a file if insertet & delets it if its removed.
So the creation of the file works, but not the removal.
Code:
#! /bin/sh
if [ "$ACTION" = "add" ]; then
touch /home/simon/Desktop/file
echo -e "#!/bin/bash \nrm -r /home/simon/Desktop/file" $REMOVER
chmod +x $REMOVER
fi
So why this does not work.
Also I am interested in why the following does not work?
Code:
.....
if [ "$ACTION" = "remove" ]; then
rm /home/simon/Desktop/file
fi
any hints
thanks in advance aspartat