Skip to content

Commit d370946

Browse files
committed
be more verbose in empty directory check
1 parent 0d71623 commit d370946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ main() {
4141
return 1
4242
fi
4343

44-
if [[ -z `ls -A "$deploy_directory" 2> /dev/null` && -z $allow_empty ]]; then
45-
echo "Deploy directory '$deploy_directory' is empty. Aborting. If you're sure you want to deploy an empty tree, use the -e flag." >&2
44+
if [[ -z `ls --almost-all "$deploy_directory" 2> /dev/null` && -z $allow_empty ]]; then
45+
echo "Deploy directory '$deploy_directory' is empty. Aborting. If you're sure you want to deploy an empty tree, use the --allow-empty / -e flag." >&2
4646
return 1
4747
fi
4848

0 commit comments

Comments
 (0)