From c59c9a3cc772023c1fddc0e3290216170dc35495 Mon Sep 17 00:00:00 2001 From: tigerbot Date: Tue, 30 May 2017 11:39:46 -0600 Subject: [PATCH] fixed logical check in install script --- .gitignore | 2 ++ install.sh | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 install.sh 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