# Run Topgrade without parameters, equivalent of being installed to PATH TOPGRADE_PATH="/opt/topgrade/topgrade" topgrade_conf_path="/etc/topgrade" topgrade_conf_repo="https://git.deathbybandaid.net/deathbybandaid/topgrade.git" # Use Configuration options from repo topgrade_conf_pull () { if [[ -d "$topgrade_conf_path" ]] ; then git -C $topgrade_conf_path pull --quiet && echo "Pulled $topgrade_conf_path" else git clone --quiet "$topgrade_conf_repo" "$topgrade_conf_path" && echo "Pulled $topgrade_conf_path" fi } alias topgrade-conf-pull='topgrade_conf_pull' #alias topgrade='$TOPGRADE_PATH' # System Updates Only alias sysup='$TOPGRADE_PATH --config $topgrade_conf_path/systemonly.toml' # Template Repos alias templategitup='$TOPGRADE_PATH --config $topgrade_conf_path/template_git.toml' topgrade () { 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 #}