Skip to content

Commit

Permalink
update (Sat Oct 26 11:56:37 AM CST 2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry-Terrasse committed Oct 26, 2024
1 parent 59f3431 commit a213546
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ export GIT_DIR=$GIT_WORK_TREE/.git
if git diff --exit-code; then
echo "Already up-to-date"
else
git add $GIT_WORK_TREE -v
git commit -m "update (`date`)"

# Request to push
echo -n "Push? [Y/n]"
read ans
case $ans in
[yY] | "" )
echo "Push:"
git add $GIT_WORK_TREE -v
git commit -m "update (`date`)"
git push
;;
[nN] )
Expand Down

0 comments on commit a213546

Please sign in to comment.