You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spydian/update.sh

13 lines
399 B
Bash

#!/usr/bin/env bash
cd ..
if [ -d "spydian/" ];then
sudo git -b develop clone https://trivernis@bitbucket.org/trivernis/spydian.git spydian_update
sudo rsync -a ./spydian_update/ ./spydian/
sudo rm -r ./spydian_update/
sudo chmod -R u+rw ./spydian/
exit 0
else
sudo git clone https://bitbucket.org/trivernis/spydian.git spydian
sudo chmod -R u+rw ./spydian/
exit 0
fi