We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f171f commit f051da0Copy full SHA for f051da0
deploy.sh
@@ -60,8 +60,9 @@ main() {
60
echo "Deploy directory '$deploy_directory' does not exist. Aborting." >&2
61
return 1
62
fi
63
-
64
- if [[ -z `ls --almost-all "$deploy_directory" 2> /dev/null` && -z $allow_empty ]]; then
+
+ # must use short form of flag in ls for compatibility with OS X and BSD
65
+ if [[ -z `ls -A "$deploy_directory" 2> /dev/null` && -z $allow_empty ]]; then
66
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
67
68
0 commit comments