fixed logical check in install script

This commit is contained in:
tigerbot 2017-05-30 11:39:46 -06:00
parent fe81df00ee
commit c59c9a3cc7
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*.*sw*
bower_components/
assets/

6
install.sh Normal file → Executable file
View File

@ -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