I'm trying to write a script that checks if a certain file exists en if so tries to delete it. Can anybody tell me what's wrong with this:
Code:
loclock=$HOME/.mozilla/default/*/lock
#check if file exists
if [ -e $loclock ]
then
#if so then delete
rm $loclock
fi
#run mozilla
mozilla
This if statement always returns false. I don't get it.