aboutsummaryrefslogtreecommitdiff
path: root/bin/update-scripts-repo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update-scripts-repo.sh')
-rwxr-xr-xbin/update-scripts-repo.sh12
1 files changed, 9 insertions, 3 deletions
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