1
0
Fork 0
mirror of synced 2024-06-16 04:41:09 -04:00

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

14
yadm
View file

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