repo-cloner/src/config

15 lines
320 B
Plaintext
Raw Normal View History

2018-02-05 15:47:39 +01:00
#!/bin/bash
2018-02-06 12:00:38 +01:00
# 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}
2018-02-05 15:47:39 +01:00
# modify PATH
bindir=$(dirname $(realpath $0))
PATH=$bindir:$PATH