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.
if [ "$ACTION" = "add" ]; then
echo -e "#!/bin/bash \nrm -r /home/simon/Desktop/file" $REMOVER
chmod +x $REMOVER
So why this does not work.
Also I am interested in why the following does not work?
if [ "$ACTION" = "remove" ]; then
thanks in advance aspartat