diff --git a/topgrade.aliases b/topgrade.aliases index 039547a..39675ac 100644 --- a/topgrade.aliases +++ b/topgrade.aliases @@ -1,6 +1,6 @@ # Run Topgrade without parameters, equivalent of being installed to PATH -topgrade_path="/opt/topgrade/topgrade" +TOPGRADE_PATH="/opt/topgrade/topgrade" topgrade_conf_path="/etc/topgrade" topgrade_conf_repo="https://git.deathbybandaid.net/deathbybandaid/topgrade.git" @@ -15,29 +15,29 @@ topgrade_conf_pull () } alias topgrade-conf-pull='topgrade_conf_pull' -#alias topgrade='$topgrade_path' +#alias topgrade='$TOPGRADE_PATH' # System Updates Only -alias sysup='$topgrade_path --config $topgrade_conf_path/systemonly.toml' +alias sysup='$TOPGRADE_PATH --config $topgrade_conf_path/systemonly.toml' # Template Repos -alias templategitup='$topgrade_path --config $topgrade_conf_path/template_git.toml' +alias templategitup='$TOPGRADE_PATH --config $topgrade_conf_path/template_git.toml' topgrade () { - if [[ -f "$topgrade_path" ]] ; then - $topgrade_path + if [[ -f "$TOPGRADE_PATH" ]] ; then + $TOPGRADE_PATH else - echo "topgrade not found at $topgrade_path" + 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 +# if [[ -f "$TOPGRADE_PATH" ]] ; then +# $TOPGRADE_PATH --config $topgrade_conf_path/systemonly.toml # else -# echo "topgrade not found at $topgrade_path" +# echo "topgrade not found at $TOPGRADE_PATH" # fi #}