mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Allow for minimal installs.
This commit is contained in:
@@ -4,6 +4,7 @@ set nounset
|
|||||||
set errexit
|
set errexit
|
||||||
|
|
||||||
BASEDIR=${BASEDIR:-$HOME/.skel}
|
BASEDIR=${BASEDIR:-$HOME/.skel}
|
||||||
|
MINIMAL=${MINIMAL:-0}
|
||||||
|
|
||||||
if [ ! -d $BASEDIR ] ; then
|
if [ ! -d $BASEDIR ] ; then
|
||||||
echo "Please install to $BASEDIR!" 1>&2
|
echo "Please install to $BASEDIR!" 1>&2
|
||||||
@@ -69,9 +70,9 @@ function postinstall {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
prerequisites
|
(( $MINIMAL )) || prerequisites
|
||||||
install_dotfile_dir "${BASEDIR}/dotfiles"
|
install_dotfile_dir "${BASEDIR}/dotfiles"
|
||||||
test -d "${BASEDIR}/private_dotfiles" && \
|
test -d "${BASEDIR}/private_dotfiles" && \
|
||||||
install_dotfile_dir "${BASEDIR}/private_dotfiles"
|
install_dotfile_dir "${BASEDIR}/private_dotfiles"
|
||||||
install_basic_dir "${BASEDIR}/bin" "${HOME}/bin"
|
install_basic_dir "${BASEDIR}/bin" "${HOME}/bin"
|
||||||
postinstall
|
(( $MINIMAL )) || postinstall
|
||||||
|
|||||||
Reference in New Issue
Block a user