From 0bec94c5f249b98d269cc50df15bbf4c8e9b9b89 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Feb 2022 15:15:59 -0500 Subject: [PATCH] test --- topgrade.aliases | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/topgrade.aliases b/topgrade.aliases index 7b1e04b..7f11f20 100644 --- a/topgrade.aliases +++ b/topgrade.aliases @@ -5,14 +5,14 @@ topgrade_conf_path="/etc/topgrade" topgrade_conf_repo="https://git.deathbybandaid.net/deathbybandaid/topgrade.git" # 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" && echo "Pulled $topgrade_conf_path" -# fi -#} +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" && echo "Pulled $topgrade_conf_path" + fi +} #topgrade () #{