1
0
Fork 0

Autocommitted updated scripts from blocky-cafe

main
Marissa Staib 5 years ago
parent 574017f6fb
commit 4deebb671c
  1. 5
      bash_aliases.sh

@ -68,11 +68,12 @@ function sync_git_only()
git commit -am "Autocommitted updated scripts from $(hostname)"
fi
git pull --rebase
if ! git diff --exit-code origin/master master; then
git log --reverse origin/master..master
if ! git --no-pager diff --exit-code origin/master master; then
git --no-pager log --reverse origin/master..master
if ! read -p "OK to push these changes? (Y/N) " -N 1 confirm; then
confirm = "N"
fi
echo
if [[ "$confirm" != "Y" ]] && [[ "$confirm" != "y" ]]; then
echo "Not pushing yet."
else

Loading…
Cancel
Save