about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xupdate.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/update.sh b/update.sh
index 631c9d75..c96f4482 100755
--- a/update.sh
+++ b/update.sh
@@ -1,17 +1,17 @@
 #!/usr/bin/env sh
-run() {
-    printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running $(basename "$1") .."
-
-    cmd="$1";
+__update_sh_run() {
+    __update_sh_command="$1";
     shift 1
 
-    "$cmd" "$@"
-}
+    printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command")' .."
 
-run ./modules/home/conf/firefox/scripts/update_extensions.sh
+    "$__update_sh_command" "$@"
 
-run ./pkgs/update_pkgs.sh "$@"
+    unset __update_sh_command
+}
 
-run ./modules/system/secrets/update_secrets.sh
+__update_sh_run ./modules/home/conf/firefox/scripts/update_extensions.sh "$@"
+__update_sh_run ./pkgs/update_pkgs.sh "$@"
+__update_sh_run ./modules/system/secrets/update_secrets.sh "$@"
 
 # vim: ft=sh