From f3c23f7b9b203fdac9946a76fe7e987afee282bb Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 8 Mar 2022 10:26:11 -0500 Subject: [PATCH] test --- topgrade.aliases | 41 ++++++++++++++--------------------------- 1 file changed, 14 insertions(+), 27 deletions(-) diff --git a/topgrade.aliases b/topgrade.aliases index 66cf4af..a0925ff 100644 --- a/topgrade.aliases +++ b/topgrade.aliases @@ -4,6 +4,17 @@ TOPGRADE_PATH="/opt/topgrade/topgrade" TOPGRADE_CONF_PATH="/etc/topgrade" TOPGRADE_CONF_REPO="https://git.deathbybandaid.net/deathbybandaid/topgrade.git" + +topgrade () +{ + if [[ -f "$TOPGRADE_PATH" ]] ; then + $TOPGRADE_PATH $1 + else + echo "topgrade not found at $TOPGRADE_PATH" + fi +} + + # Use Configuration options from repo topgrade_conf_pull () { @@ -15,32 +26,8 @@ topgrade_conf_pull () } alias topgrade-conf-pull='topgrade_conf_pull' -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 -} +alias sysup='topgrade --config $TOPGRADE_CONF_PATH/systemonly.toml' - -# templategitup Updates Only -templategitup () -{ - if [[ -f "$TOPGRADE_PATH" ]] ; then - $TOPGRADE_PATH --config $TOPGRADE_CONF_PATH/template_git.toml - else - echo "topgrade not found at $TOPGRADE_PATH" - fi -} +# Template Repos +alias templategitup='topgrade --config $TOPGRADE_CONF_PATH/template_git.toml'