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