Use env value for YADM_* variable if defined

This will let a user define an env variable
and commit that into their dotfiles. This
removes the need for defining an alias
This commit is contained in:
James Simpson 2019-10-19 11:45:27 -04:00
parent 2848ca2d1d
commit 8b2ce05125
No known key found for this signature in database
GPG Key ID: 65CC35629EFD2D7B
1 changed files with 7 additions and 7 deletions

14
yadm
View File

@ -22,14 +22,14 @@ fi
VERSION=1.12.0
YADM_WORK="$HOME"
YADM_DIR="$HOME/.yadm"
YADM_WORK=${YADM_WORK:-"$HOME"}
YADM_DIR=${YADM_DIR:-"$HOME/.yadm"}
YADM_REPO="repo.git"
YADM_CONFIG="config"
YADM_ENCRYPT="encrypt"
YADM_ARCHIVE="files.gpg"
YADM_BOOTSTRAP="bootstrap"
YADM_REPO=${YADM_REPO:-"repo.git"}
YADM_CONFIG=${YADM_CONFIG:-"config"}
YADM_ENCRYPT=${YADM_ENCRYPT:-"encrypt"}
YADM_ARCHIVE=${YADM_ARCHIVE:-"files.gpg"}
YADM_BOOTSTRAP=${YADM_BOOTSTRAP:-"bootstrap"}
HOOK_COMMAND=""
FULL_COMMAND=""