Update install.sh

This commit is contained in:
JeremyStar™ 2023-12-08 17:38:01 +01:00
parent b98bb50b65
commit 9270910c58

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
# jeremystartm's dotfiles "installer" # jeremystartm's dotfiles "installer"
# useful function
function link() { function link() {
if [ -a "${HOME}/${2}" ]; then if [ -a "${HOME}/${2}" ]; then
[[ -n "$VERBOSE_WARNING" ]] && echo ":: Warning: ${2} already exists." [[ -n "$VERBOSE_WARNING" ]] && echo ":: Warning: ${2} already exists."
@ -9,8 +11,12 @@ function link() {
fi fi
} }
# update submodules
git submodule update --init --recursive git submodule update --init --recursive
# create directories
mkdir -p "${HOME}/.config" "${HOME}/.local/share/mc/skins"
# jobrunner # jobrunner
link "jobrunner/daemon.sh" ".local/bin/jobrunner" link "jobrunner/daemon.sh" ".local/bin/jobrunner"
link "jobrunner/runjob.sh" ".local/bin/jobrunner-runjob" link "jobrunner/runjob.sh" ".local/bin/jobrunner-runjob"