Update install.sh
This commit is contained in:
parent
b98bb50b65
commit
9270910c58
1 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue