topgrade conf pull
This commit is contained in:
parent
fa82c3015e
commit
70080ae5ef
@ -2,5 +2,16 @@
|
|||||||
# Run Topgrade without parameters, equivalent of being installed to PATH
|
# Run Topgrade without parameters, equivalent of being installed to PATH
|
||||||
topgrade_path='/opt/topgrade/topgrade'
|
topgrade_path='/opt/topgrade/topgrade'
|
||||||
topgrade_conf_path='/etc/topgrade'
|
topgrade_conf_path='/etc/topgrade'
|
||||||
|
topgrade_conf_repo="https://git.deathbybandaid.net/deathbybandaid/topgrade.git"
|
||||||
|
|
||||||
alias topgrade='$topgrade_path'
|
alias topgrade='$topgrade_path'
|
||||||
|
|
||||||
|
# Use Configuration options from repo
|
||||||
|
topgrade-conf-pull ()
|
||||||
|
{
|
||||||
|
if [ -d "$topgrade_conf_path" ] ; then
|
||||||
|
git -C $topgrade_conf_path pull --quiet && echo "Pulled $topgrade_conf_path"
|
||||||
|
else
|
||||||
|
git clone --quiet "$topgrade_conf_repo" "$topgrade_conf_path"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user