I have a script part where I am checking if the file exist . I dont find where is my mistake because it jumps to else( file exists) and starts downloading that file. Part of code:
...
if [ -f '$ins.img' ];
then
echo '$ins.img already exists'
else
wget http://$2/$ins/$ins.img
fi
...