From 524152fc68617727be4a663160de80f3ebe7cef3 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Mon, 26 Apr 2021 16:37:24 -0400 Subject: properly fail on empty source --- tmpoverlay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3-70-g09d2