From f6477766b75e401d211944519ea11d4ad4fc9f61 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Wed, 22 Jan 2025 20:16:01 +0100 Subject: Simplify scripts and improve clarity - Removed redundant variables in `update-git-repo.sh`. - Simplified `update-scripts-repo.sh` by removing unnecessary `git diff` output. --- auto-void-packages/update-git-repo.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'auto-void-packages') diff --git a/auto-void-packages/update-git-repo.sh b/auto-void-packages/update-git-repo.sh index e71701c..9533bc9 100755 --- a/auto-void-packages/update-git-repo.sh +++ b/auto-void-packages/update-git-repo.sh @@ -5,19 +5,15 @@ echo_n_notify(){ } pushd "$HOME/workbench/void-packages" || exit 1 -CHECKOUT="checkout" -FETCH="fetch" -MERGE="merge" -PUSH="push" git checkout master && \ - echo_n_notify "$CHECKOUT: ok" && \ + echo_n_notify "checkout: ok" && \ git fetch upstream && \ - echo_n_notify "$FETCH: ok" && \ + echo_n_notify "fetch: ok" && \ git merge upstream/master && \ - echo_n_notify "$MERGE: ok" && \ + echo_n_notify "merge: ok" && \ git push && \ - echo_n_notify "$PUSH: ok" + echo_n_notify "push: ok" ./xbps-src bootstrap-update -- cgit v1.2.3