Config - default vs configured paths
This commit is contained in:
parent
d29b955a5e
commit
e3356f16f0
|
@ -1,7 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
cfgMirrorPath=/home/vasek/asdf
|
||||
cfgCachePath=/home/vasek/asdf-cache
|
||||
# Default values
|
||||
defaultMirrorPath=$HOME/.git-mirror
|
||||
defaultCachePath=$HOME/.git-mirror-cache
|
||||
|
||||
# Config ones - replaced with environment vars
|
||||
cfgMirrorPath=${CCLONE_PATH:-$defaultMirrorPath}
|
||||
cfgCachePath=${CCLONE_CACHE:-$defaultCachePath}
|
||||
|
||||
# modify PATH
|
||||
bindir=$(dirname $(realpath $0))
|
||||
|
|
Loading…
Reference in New Issue
Block a user