system changes

This commit is contained in:
jjanzen 2025-03-03 15:14:02 -06:00
parent cdfc984e86
commit 2404dee657
3 changed files with 6 additions and 33 deletions

View file

@ -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

View file

@ -8,6 +8,8 @@
echo "Usage: $0 [-u/-i]"
}
[ "$#" -eq 0 ] && usage && exit 1
dir="$pwd"
cd ~/.dotfiles || exit 1

View file

@ -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