From 0b5a73c5add7e9d67c7151583e73aebbcb5e03ad Mon Sep 17 00:00:00 2001 From: thislooksfun Date: Wed, 29 Nov 2017 01:19:08 -0600 Subject: [PATCH] [travis] Account for doc folder missing --- scripts/deploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index b9aa733..5aa9a53 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -27,10 +27,12 @@ fi mkdir "deploy_staging" function cp_dep() { - if [ -d "$1" ]; then - cp -r "$1" "deploy_staging/$1" - else - cp "$1" "deploy_staging/" + if [ -e "$1" ]; then + if [ -d "$1" ]; then + cp -r "$1" "deploy_staging/$1" + else + cp "$1" "deploy_staging/" + fi fi }