Allows passing YADM_WORK and YADM_DIR variables from the environment.

This commit is contained in:
Ryan McGuire 2016-03-18 23:57:13 -04:00
parent 4948f1b137
commit a3d5192f98
1 changed files with 2 additions and 2 deletions

4
yadm
View File

@ -17,8 +17,8 @@
VERSION=1.03
YADM_WORK="$HOME"
YADM_DIR="$HOME/.yadm"
[ -z "$YADM_WORK" ] && YADM_WORK="$HOME"
[ -z "$YADM_DIR" ] && YADM_DIR="$HOME/.yadm"
YADM_REPO="$YADM_DIR/repo.git"
YADM_CONFIG="$YADM_DIR/config"