summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtmpoverlay2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmpoverlay b/tmpoverlay
index 10662f5..d5e84f2 100755
--- a/tmpoverlay
+++ b/tmpoverlay
@@ -126,7 +126,7 @@ done
[ $# != 0 ] || { log 'no paths specified'; usage >&2; exit 1; }
unset lowerdir
-while [ -n "$2" ]; do
+while [ "$#" != 1 ]; do
d=$(canon "$1")
if [ -h "$d" ] || ! [ -d "$d" ]; then
die 'source "%s" is not a directory' "$d"