From cdfc984e868fb497c027b3b9bab8ee49ad289719 Mon Sep 17 00:00:00 2001 From: jjanzen Date: Mon, 3 Mar 2025 15:11:00 -0600 Subject: system changes --- macos.local/.flake/home/scripts/manage-system.org | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 macos.local/.flake/home/scripts/manage-system.org (limited to 'macos.local/.flake/home/scripts/manage-system.org') diff --git a/macos.local/.flake/home/scripts/manage-system.org b/macos.local/.flake/home/scripts/manage-system.org new file mode 100644 index 0000000..c511161 --- /dev/null +++ b/macos.local/.flake/home/scripts/manage-system.org @@ -0,0 +1,37 @@ +#+title: System Management Script + +#+begin_src sh + #!/bin/sh + + usage () + { + echo "Usage: $0 [-u/-i]" + } + + dir="$pwd" + cd ~/.dotfiles || exit 1 + + while getopts ":hui" arg; do + case "$arg" in + h) + usage + cd "$dir" || exit 1 + exit 0 + ;; + u) + make update + cd "$dir" || exit 1 + exit 0 + ;; + i) + make install + cd "$dir" || exit 1 + exit 0 + ;; + ,*) + cd "$dir" || exit 1 + exit 1 + ;; + esac + done +#+end_src -- cgit v1.2.3