Skip to content

Commit

Permalink
Merge branch 'jb36243' into 'master'
Browse files Browse the repository at this point in the history
[tools] Use POSIX arguments for find. Contributes to JB#36243

See merge request mer-core/vault!5
  • Loading branch information
lbt committed Nov 29, 2018
2 parents a14d386 + 91a756f commit 7662485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/git-vault-export
Expand Up @@ -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
Expand Down

0 comments on commit 7662485

Please sign in to comment.