diff --git a/.gitignore b/.gitignore index a9e8050..4249b68 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ *.*sw* +bower_components/ +assets/ diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 52ec282..3598813 --- a/install.sh +++ b/install.sh @@ -1,10 +1,12 @@ #!/bin/bash +set -e +set -u # git clone git@git.daplie.com:OAuth3/org.oauth3.git /srv/walnut/packages/pages/org.oauth3 mkdir -p assets -if [ -d ./assets/org.oauth3 ]; then - git clone git@git.daplie.com:Daplie/oauth3.js.git ./assets/org.oauth3 +if ! [ -d ./assets/org.oauth3 ]; then + git clone git@git.daplie.com:Daplie/oauth3.js.git ./assets/org.oauth3 fi pushd ./assets/org.oauth3 git checkout v1