{"action":"created","issue":{"url":"https://api.github.com/repos/X1011/git-directory-deploy/issues/17","labels_url":"https://api.github.com/repos/X1011/git-directory-deploy/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/X1011/git-directory-deploy/issues/17/comments","events_url":"https://api.github.com/repos/X1011/git-directory-deploy/issues/17/events","html_url":"https://github.com/X1011/git-directory-deploy/issues/17","id":113991948,"number":17,"title":"\"Deploy directory 'dist' is empty\" but it isn't","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-29T06:49:28Z","updated_at":"2015-10-29T06:57:21Z","closed_at":null,"body":"I just grabbed the latest version of your script and I got this issue.\r\nIt guess the script need to be at the same level of dist?\r\n\r\n```console\r\n~/Sync/Development/statinamic/demo master* ⇡\r\n❯ ./scripts/deploy.sh \r\nDeploy directory 'dist' is empty. Aborting. If you're sure you want to deploy an empty tree, use the --allow-empty / -e flag.\r\n\r\n~/Sync/Development/statinamic/demo master* ⇡\r\n❯❯ ls dist \r\ncollection.json       docs                  index.html            index.json            statinamic-client.css statinamic-client.js\r\n```"},"comment":{"url":"https://api.github.com/repos/X1011/git-directory-deploy/issues/comments/152098137","html_url":"https://github.com/X1011/git-directory-deploy/issues/17#issuecomment-152098137","issue_url":"https://api.github.com/repos/X1011/git-directory-deploy/issues/17","id":152098137,"user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T06:57:21Z","updated_at":"2015-10-29T06:57:21Z","body":"Not sure why this option is not working for me. I changed the syntax to `ls -A` and it is working now. Maybe you should do the same in your script?"}}