Skip to content

Commit

Permalink
Merge pull request #5 from thislooksfun/develop
Browse files Browse the repository at this point in the history
[travis] Account for doc folder missing
  • Loading branch information
thislooksfun authored Nov 29, 2017
2 parents c5b62df + 0b5a73c commit 6e55f18
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6e55f18

Please sign in to comment.