aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake
diff options
context:
space:
mode:
authorjjanzen <jjanzen@jjanzen.ca>2025-03-03 15:14:02 -0600
committerjjanzen <jjanzen@jjanzen.ca>2025-03-03 15:14:02 -0600
commit2404dee657e4a166f7c2f76d0432932e3f7a29f7 (patch)
treec239285e5d05537b0cffabb4c8df78d0872b369a /macos.local/.flake
parentcdfc984e868fb497c027b3b9bab8ee49ad289719 (diff)
system changes
Diffstat (limited to 'macos.local/.flake')
-rw-r--r--macos.local/.flake/home/scripts/core.nix.org4
-rw-r--r--macos.local/.flake/home/scripts/manage-system.org2
-rw-r--r--macos.local/.flake/home/scripts/test.sh33
3 files changed, 6 insertions, 33 deletions
diff --git a/macos.local/.flake/home/scripts/core.nix.org b/macos.local/.flake/home/scripts/core.nix.org
index e53c38c..f3fd314 100644
--- a/macos.local/.flake/home/scripts/core.nix.org
+++ b/macos.local/.flake/home/scripts/core.nix.org
@@ -18,6 +18,10 @@ Import various scripts useful on my system.
executable = true;
source = ./remove-quarantine;
};
+ "./.local/bin/manage-system" = {
+ executable = true;
+ source = ./manage-system;
+ };
};
}
#+end_src
diff --git a/macos.local/.flake/home/scripts/manage-system.org b/macos.local/.flake/home/scripts/manage-system.org
index c511161..91670f0 100644
--- a/macos.local/.flake/home/scripts/manage-system.org
+++ b/macos.local/.flake/home/scripts/manage-system.org
@@ -8,6 +8,8 @@
echo "Usage: $0 [-u/-i]"
}
+ [ "$#" -eq 0 ] && usage && exit 1
+
dir="$pwd"
cd ~/.dotfiles || exit 1
diff --git a/macos.local/.flake/home/scripts/test.sh b/macos.local/.flake/home/scripts/test.sh
deleted file mode 100644
index 084b317..0000000
--- a/macos.local/.flake/home/scripts/test.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/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