From ce048f4eb73763e57777ec6c94387587b67c12ba Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 8 Mar 2022 10:18:31 -0500 Subject: [PATCH] test --- topgrade.aliases | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/topgrade.aliases b/topgrade.aliases index 1f4fa5e..039547a 100644 --- a/topgrade.aliases +++ b/topgrade.aliases @@ -7,7 +7,7 @@ topgrade_conf_repo="https://git.deathbybandaid.net/deathbybandaid/topgrade.git" # Use Configuration options from repo topgrade_conf_pull () { - if [ -d "$topgrade_conf_path" ] ; then + 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" @@ -25,8 +25,8 @@ alias templategitup='$topgrade_path --config $topgrade_conf_path/template_git.to topgrade () { - if [ -f $topgrade_path ] ; then - "$topgrade_path" + if [[ -f "$topgrade_path" ]] ; then + $topgrade_path else echo "topgrade not found at $topgrade_path" fi @@ -35,8 +35,8 @@ topgrade () # 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" # fi