mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
update installer
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,3 +4,5 @@ installed-prefs
|
|||||||
*~
|
*~
|
||||||
*.bak
|
*.bak
|
||||||
local_dotfiles
|
local_dotfiles
|
||||||
|
dotfile_overlays
|
||||||
|
!dotfile_overlays/.keep
|
||||||
|
|||||||
23
install.sh
23
install.sh
@@ -351,15 +351,20 @@ verbose() {
|
|||||||
|
|
||||||
install_dotfiles() {
|
install_dotfiles() {
|
||||||
install_dotfile_dir "${BASEDIR}/dotfiles"
|
install_dotfile_dir "${BASEDIR}/dotfiles"
|
||||||
# shellcheck disable=SC2015
|
if test -d "${BASEDIR}/private_dotfiles" && \
|
||||||
test -d "${BASEDIR}/private_dotfiles" && \
|
test -d "${BASEDIR}/.git/git-crypt" ; then
|
||||||
test -d "${BASEDIR}/.git/git-crypt" && \
|
install_dotfile_dir "${BASEDIR}/private_dotfiles"
|
||||||
install_dotfile_dir "${BASEDIR}/private_dotfiles" || \
|
fi
|
||||||
true
|
if test -d "${BASEDIR}/local_dotfiles" ; then
|
||||||
# shellcheck disable=SC2015
|
install_dotfile_dir "${BASEDIR}/local_dotfiles"
|
||||||
test -d "${BASEDIR}/local_dotfiles" && \
|
fi
|
||||||
install_dotfile_dir "${BASEDIR}/local_dotfiles" || \
|
if test -d "${BASEDIR}/dotfile_overlays" ; then
|
||||||
true
|
for dotfiledir in "${BASEDIR}/dotfile_overlays/"* ; do
|
||||||
|
if test -d "${dotfiledir}" ; then
|
||||||
|
install_dotfile_dir "${dotfiledir}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_main() {
|
install_main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user