From bc38deaab64ac0c4cf4320aa6137422b8ba95a0c Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Wed, 2 Nov 2022 23:28:41 +0100 Subject: Updating the script for this repo and adding rc.sh --- bin/update-scripts-repo.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'bin/update-scripts-repo.sh') diff --git a/bin/update-scripts-repo.sh b/bin/update-scripts-repo.sh index 89bfa36..e699472 100755 --- a/bin/update-scripts-repo.sh +++ b/bin/update-scripts-repo.sh @@ -3,6 +3,12 @@ SCRIPTS_REPO_PATH="$HOME/workbench/scripts/" -cp -rv "$HOME/.local/usr/local/bin" "$SCRIPTS_REPO_PATH" -cp -rv "$HOME/workbench/auto-void-packages" "$SCRIPTS_REPO_PATH" -cp -rv "$HOME/workbench/ansible" "$SCRIPTS_REPO_PATH" +pushd "$SCRIPTS_REPO_PATH" || exit 1 + +cp -rv "$HOME/.local/usr/local/bin" . +cp -rv "$HOME/workbench/auto-void-packages" . +cp -rv "$HOME/workbench/ansible" . + +git add . && git commit && git push -v --progress + +popd || exit 1 -- cgit v1.2.3