repo-cloner/old/src/config
Václav Valíček b536c883de
move old files to old directory
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-05-04 09:46:41 +02:00

15 lines
320 B
Bash

#!/bin/bash
# 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))
PATH=$bindir:$PATH