Allows passing YADM_WORK and YADM_DIR variables from the environment.
This commit is contained in:
parent
4948f1b137
commit
a3d5192f98
1 changed files with 2 additions and 2 deletions
4
yadm
4
yadm
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue