Commit 76624856 authored by lbt's avatar lbt

Merge branch 'jb36243' into 'master'

[tools] Use POSIX arguments for find. Contributes to JB#36243

See merge request !5
parents a14d3869 91a756f3
......@@ -23,7 +23,7 @@ git rev-parse "$SNAP" >/dev/null || error "There is no snapshot $SNAP"
[ -d $DST ] || error "There is no destination dir $DST"
# only $DST itself is expected
COUNT=$(find $DST -maxdepth 1 -not -name '.' | wc -l)
COUNT=$(find $DST -maxdepth 1 '!' -name '.' | wc -l)
if [ "x$COUNT" != "x1" ]; then
error "Dst dir $DST should be empty, found $COUNT entries"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment