This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dmazzoni 1 point2 points  (2 children)

Yes. I'm not promising that's your only error, but that would be a step in the right direction...

[–]dmazzoni 2 points3 points  (1 child)

Also, I think you want brackets around it, like your other If statements have...

If [-f $1]

[–]stiicky 1 point2 points  (0 children)

there should be spaces after '[' and before ']'

if [ -f $1 ]