From 7ce29326e1db210c6a3b8aafabf2799f0fa05297 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Feb 2022 15:22:42 -0500 Subject: [PATCH] tweak topgrade --- topgrade.aliases | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/topgrade.aliases b/topgrade.aliases index 5c1a8c6..e99b8fd 100644 --- a/topgrade.aliases +++ b/topgrade.aliases @@ -1,20 +1,9 @@ # Run Topgrade without parameters, equivalent of being installed to PATH -topgrade_path='/opt/topgrade/topgrade' -topgrade_conf_path='/etc/topgrade' +topgrade_path="/opt/topgrade/topgrade" +topgrade_conf_path="/etc/topgrade" topgrade_conf_repo="https://git.deathbybandaid.net/deathbybandaid/topgrade.git" -alias topgrade='$topgrade_path' - -topgrade () -{ - if [ -f "$topgrade_path" ] ; then - $topgrade_path - else - echo "topgrade not found at $topgrade_path" - fi -} - # Use Configuration options from repo topgrade-conf-pull () { @@ -25,5 +14,27 @@ topgrade-conf-pull () fi } +alias topgrade='$topgrade_path' + # System Updates Only alias sysup='$topgrade_path --config $topgrade_conf_path/systemonly.toml' + +#topgrade () +#{ + #echo "test" + #if [ -f "$topgrade_path" ] ; then + # "$topgrade_path" + #else + # echo "topgrade not found at $topgrade_path" + #fi +#} + +# System Updates Only +#sysup () +#{ +# if [ -f "$topgrade_path" ] ; then +# "$topgrade_path" --config $topgrade_conf_path/systemonly.toml +# else +# echo "topgrade not found at $topgrade_path" +# fi +#}