From ebfed11ea01a136091a83cbe2f14bdfef01abc66 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 27 Sep 2012 09:45:49 -0400 Subject: [PATCH] Add DOTFILES_* environment variable overrides for external utilities. --- dotfiles.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/dotfiles.sh b/dotfiles.sh index a1379a3..6a09bd0 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -26,17 +26,17 @@ CHECK_WGET_TYPE_AND_ENCODING='no' ##### # External utilities -DIFF=$(which diff) -GIT=$(which git) -LN=$(which ln) -MV=$(which mv) -PATCH=$(which patch) -SED=$(which sed) -RM=$(which rm) -RSYNC=$(which rsync) -TAR=$(which tar) -TOUCH=$(which touch) -WGET=$(which wget) +DIFF=${DOTFILES_DIFF:-$(which diff)} +GIT=${DOTFILES_GIT:-$(which git)} +LN=${DOTFILES_LN:-$(which ln)} +MV=${DOTFILES_MV:-$(which mv)} +PATCH=${DOTFILES_PATCH:-$(which patch)} +SED=${DOTFILES_SED:-$(which sed)} +RM=${DOTFILES_RM:-$(which rm)} +RSYNC=${DOTFILES_RSYNC:-$(which rsync)} +TAR=${DOTFILES_TAR:-$(which tar)} +TOUCH=${DOTFILES_TOUCH:-$(which touch)} +WGET=${DOTFILES_WGET:-$(which wget)} ##### # Compatibility checks -- 2.26.2