diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-03 10:46:58 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-03 10:46:58 +0100 |
| commit | bb795a9555fcb3766ace43faf65fa26f87b09efb (patch) | |
| tree | 29714b66a07860d00e8798e6f66ecc1040f33091 | |
| parent | ac81aeed313be10f10199c4efb549e3f1e6e273e (diff) | |
install.sh picks up with cloning where left off
| -rw-r--r-- | install.sh | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -18,10 +18,17 @@ then fi cd /home/joeac.net -sudo -u joeac.net git clone https://git.joeac.net/joeac.net.git joeac.net -sudo ln -s /home/joeac.net/joeac.net /usr/local/lib/joeac.net +if ! [ -d joeac.net/.git ] +then + sudo -u joeac.net git clone https://git.joeac.net/joeac.net.git joeac.net +fi cd joeac.net +if ! [ -h /usr/local/lib/joeac.net ] +then + sudo ln -s /home/joeac.net/joeac.net /usr/local/lib/joeac.net +fi + if [ -z "${DIGITALOCEAN_TOKEN}" ] then read -sp "DIGITALOCEAN_TOKEN: " DIGITALOCEAN_TOKEN |
