aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2022-12-10 20:00:39 +0100
committerclyhtsuriva <aimeric@adjutor.xyz>2022-12-10 20:00:39 +0100
commit41bc68fce633990bc629bc1a7fd57de63a072b2e (patch)
tree1733a0f9a5ba95d7d0ab17717d2803b2194ec0a1 /bin
parent05a449a1a2defe98387b9546144a43394878f804 (diff)
Adding update-scripts-repo.sh to update-everything.sh
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-everything.sh29
1 files changed, 25 insertions, 4 deletions
diff --git a/bin/update-everything.sh b/bin/update-everything.sh
index f38d4cf..c9f6ba2 100755
--- a/bin/update-everything.sh
+++ b/bin/update-everything.sh
@@ -10,19 +10,18 @@
# remote_update
# non_free_update
# pip_update
+# update_scripts_repo
-xi='sudo xbps-install'
-xr='sudo xbps-remove'
-
# Print to stdout
# And as a notification
echo_n_notify(){
+
printf "%s\n" "[$1]"
notify-send "[$1]"
+
}
-echo_n_notify "Updating everything ..."
# Update local xbps packages
# And clean the cache and remove orphans
@@ -35,6 +34,7 @@ local_update(){
}
+
# Update remote debian server using Ansible
remote_update(){
@@ -45,6 +45,7 @@ remote_update(){
}
+
# Update non-free xbps packages
non_free_update(){
@@ -63,6 +64,7 @@ non_free_update(){
}
+
# Update pip packages needing one
pip_update(){
@@ -75,9 +77,28 @@ pip_update(){
}
+# Execute update-script-repo.sh
+# to add, commit and push
+# updates of my custom scripts
+# and ansible playbooks
+update_scripts_repo(){
+ echo_n_notify "custom scripts repo update"
+
+ update-scripts-repo.sh
+
+}
+
+
+
# MAIN
+xi='sudo xbps-install'
+xr='sudo xbps-remove'
+
+echo_n_notify "Updating everything ..."
+
local_update
remote_update
non_free_update
pip_update
+update_scripts_repo