aboutsummaryrefslogtreecommitdiff
path: root/macos.local/flake/home/scripts/manage-system.org
diff options
context:
space:
mode:
authorjjanzen <jjanzen@jjanzen.ca>2025-03-13 18:22:22 -0500
committerjjanzen <jjanzen@jjanzen.ca>2025-03-13 18:22:22 -0500
commit84df97ccf25dc6af05be799ffc1038a88db24654 (patch)
tree4bd3b38bec71ea0b5cf44d5e24eac267f818ab28 /macos.local/flake/home/scripts/manage-system.org
parent5771ae4219f5315ac6db51eaac6da7c7caab02d2 (diff)
system changes
Diffstat (limited to 'macos.local/flake/home/scripts/manage-system.org')
-rw-r--r--macos.local/flake/home/scripts/manage-system.org47
1 files changed, 0 insertions, 47 deletions
diff --git a/macos.local/flake/home/scripts/manage-system.org b/macos.local/flake/home/scripts/manage-system.org
deleted file mode 100644
index e8da0d9..0000000
--- a/macos.local/flake/home/scripts/manage-system.org
+++ /dev/null
@@ -1,47 +0,0 @@
-#+title: System Management Script
-
-#+begin_src sh
- #!/bin/sh
-
- usage ()
- {
- echo "Usage: $0 [command] where command is one of"
- echo "help - show this message and exit"
- echo "backup - push the configuration to the remote"
- echo "update - update the system"
- echo "install - install the system configurations"
- }
-
- [ "$#" -eq 0 ] && usage && exit 1
-
- dir="$pwd"
- cd ~/.dotfiles || exit 1
-
- case "$1" in
- help)
- usage
- cd "$dir" || exit 1
- exit 0
- ;;
- backup)
- git push
- cd "$dir" || exit 1
- exit 0
- ;;
- update)
- make update
- cd "$dir" || exit 1
- exit 0
- ;;
- install)
- make install
- cd "$dir" || exit 1
- exit 0
- ;;
- ,*)
- usage
- cd "$dir" || exit 1
- exit 1
- ;;
- esac
-#+end_src