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 +}