system changes
This commit is contained in:
parent
cdfc984e86
commit
2404dee657
3 changed files with 6 additions and 33 deletions
|
@ -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
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
echo "Usage: $0 [-u/-i]"
|
||||
}
|
||||
|
||||
[ "$#" -eq 0 ] && usage && exit 1
|
||||
|
||||
dir="$pwd"
|
||||
cd ~/.dotfiles || exit 1
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue