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.
executaveis/Updates/updateExecutaveis.sh

14 lines
308 B
Bash

# file: updateExecutaveis.sh
cd /d/
echo "--- check if repo exists ---"
if [ -d /d/executaveis/.git ]; then
echo "--- pull ---"
cd /d/executaveis/
git fetch --all
git reset --hard origin/master
else
echo "--- clone ---"
git clone ssh://git@prontolavar.no-ip.org:16501/srv/git/executaveis.git
fi