Config - default vs configured paths
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cfgMirrorPath=/home/vasek/asdf
|
# Default values
|
||||||
cfgCachePath=/home/vasek/asdf-cache
|
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
|
# modify PATH
|
||||||
bindir=$(dirname $(realpath $0))
|
bindir=$(dirname $(realpath $0))
|
||||||
|
|||||||
Reference in New Issue
Block a user