From e65a1e079377c680fa47e6d26b77d0fa1952618f Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 12 Sep 2015 14:41:30 -0700 Subject: [PATCH] Allow for minimal installs. --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 65e01aa..8f9760e 100755 --- a/install.sh +++ b/install.sh @@ -4,6 +4,7 @@ set nounset set errexit BASEDIR=${BASEDIR:-$HOME/.skel} +MINIMAL=${MINIMAL:-0} if [ ! -d $BASEDIR ] ; then echo "Please install to $BASEDIR!" 1>&2 @@ -69,9 +70,9 @@ function postinstall { fi } -prerequisites +(( $MINIMAL )) || prerequisites install_dotfile_dir "${BASEDIR}/dotfiles" test -d "${BASEDIR}/private_dotfiles" && \ install_dotfile_dir "${BASEDIR}/private_dotfiles" install_basic_dir "${BASEDIR}/bin" "${HOME}/bin" -postinstall +(( $MINIMAL )) || postinstall