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