user8709996
user8709996

Reputation: 19

Makefile wait if the file exists

I am trying this command:

if [ -f "${FOO}"]; then \
    sleep 5; \
fi

But I see an error like this: /bin/sh: line 0: [: missing `]'

Can someone explain this to me.

Thanks in advance.

Upvotes: 0

Views: 916

Answers (1)

user8709996
user8709996

Reputation: 19

Looks like I was missing a space: OLD: if [ -f "${FOO}"]; then \ NEW: if [ -f "${FOO}" ]; then \

Upvotes: 1

Related Questions