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.
Comrad/bin/comrad-update

18 lines
246 B
Plaintext

4 years ago
#!/bin/bash
4 years ago
4 years ago
# funcs (mac doesnt have realpath)
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
path_repo="`realpath ~/comrad/code`"
4 years ago
wd=`pwd`
4 years ago
cd $path_repo
4 years ago
git pull
git add .
git commit -m 'comrad update!'
4 years ago
git push
cd $wd