Skip to content

Commit

Permalink
fixed weird syntax error regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P.C. McQuen committed Mar 19, 2015
1 parent 8bca869 commit 374519e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions imgult
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,16 @@ fi
## so we can relish in the savings later
du -hs "$@" > preImgultSize

## bsd find needs a path to work, gnu find is smarter ...
if [ -z "$@" ]; then
## bsd find needs a path to work, gnu find is smarter,
## so we set it here if empty ...
## you may think this loop makes no sense,
## but if the user feeds a path with regex to imgult,
## e.g. `imgult *png`, then test gets confused and
## errors, separating it with the no-op `:` gets
## around this and keeps it posix ;-)
if [ -n '"$@"' ]; then
:
else
set .
fi

Expand Down

0 comments on commit 374519e

Please sign in to comment.