diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-03-03 15:11:00 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-03-03 15:11:00 -0600 |
commit | cdfc984e868fb497c027b3b9bab8ee49ad289719 (patch) | |
tree | 3e7f3a7970302113be98b231788d630618e9ad15 /macos.local/.flake | |
parent | 7a1cc2875acebab1715292a12e008b7c1e6e1bfc (diff) |
system changes
Diffstat (limited to 'macos.local/.flake')
-rw-r--r-- | macos.local/.flake/home/scripts/manage-system.org | 37 | ||||
-rw-r--r-- | macos.local/.flake/home/scripts/test.sh | 33 |
2 files changed, 70 insertions, 0 deletions
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 diff --git a/macos.local/.flake/home/scripts/test.sh b/macos.local/.flake/home/scripts/test.sh new file mode 100644 index 0000000..084b317 --- /dev/null +++ b/macos.local/.flake/home/scripts/test.sh @@ -0,0 +1,33 @@ +#!/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 |