summaryrefslogtreecommitdiff
path: root/sync
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-10-20 20:17:49 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-10-20 20:17:49 -0500
commitec64def6f6db99a7981c1665fb55eabb226ec827 (patch)
tree00753a4df2b7fa7c22f192ef5b90731e62e005a1 /sync
parent57b01e3d118c92af0ee6421a241fc34c393d5e84 (diff)
downloadscripts-ec64def6f6db99a7981c1665fb55eabb226ec827.tar.xz
scripts-ec64def6f6db99a7981c1665fb55eabb226ec827.zip
change griff to confirm changes are made before giving success message
Diffstat (limited to 'sync')
-rwxr-xr-xsync/griff4
1 files changed, 1 insertions, 3 deletions
diff --git a/sync/griff b/sync/griff
index 02b4183..0a9a9bf 100755
--- a/sync/griff
+++ b/sync/griff
@@ -39,11 +39,9 @@ for repo in $repos; do
while [ -z "$commitmsg" ]; do
read -p "Enter a commit message: " commitmsg
done
- git add .
- git commit -m "$commitmsg" \
+ git add . && git commit -m "$commitmsg" && git push \
&& echo "$GRN[Changes to repo $name successfully pushed!]$NORM" \
|| echo "$RED[An error occured while pushing changes to repo $name!]$NORM"
- git push
;;
esac
fi