From a9c42ef2fad7170850f7fed76ba0c34c111a2a16 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Feb 2022 15:30:07 -0500 Subject: [PATCH] update topgrade --- topgrade.aliases | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/topgrade.aliases b/topgrade.aliases index e99b8fd..026df0f 100644 --- a/topgrade.aliases +++ b/topgrade.aliases @@ -14,27 +14,22 @@ topgrade-conf-pull () fi } -alias topgrade='$topgrade_path' +topgrade () +{ + echo "test" + if [ -f "$topgrade_path" ] ; then + "$topgrade_path" + else + echo "topgrade not found at $topgrade_path" + fi +} # 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 -#} +sysup () +{ + if [ -f "$topgrade_path" ] ; then + "$topgrade_path" --config $topgrade_conf_path/systemonly.toml + else + echo "topgrade not found at $topgrade_path" + fi +}