-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1048
koalaman edited this page Oct 17, 2016
·
4 revisions
if [ -e foo ]
then
# TODO: handle this
fi
if [ -e foo ]
then
# TODO: handle this
true
fi
Shells do not allow empty then
clauses. They need at least one command (and comments are not commands).
If you want a then
clause that does nothing, use a dummy command like true
.
None.