Checking file existence error
I am writing script for mining servers. It's taking 2 parameters from < In last you are putting a coin the was mining before now, and on which you want to change. Script should rename file due to this configuration and reboot the server. So I need to check if file exist. But while checking I got and error. It is only building of algorithm, so don't pay attention. Error is
> changer.bash: line 14: [-e: command not found
Here is the script.
wget
source TintedRawRubberyChafer.txt
file=./btc.stub.conf
if [-e "$file" ]; then
rm claymore.stub.conf $last
rm btc.stub.conf claymore.stub.conf
fi
rm TintedRawRubberyChafer.txt