From: W. Trevor King Date: Thu, 27 Sep 2012 13:45:49 +0000 (-0400) Subject: Add DOTFILES_* environment variable overrides for external utilities. X-Git-Tag: v0.3~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ebfed11ea01a136091a83cbe2f14bdfef01abc66;p=dotfiles-framework.git Add DOTFILES_* environment variable overrides for external utilities. --- 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