From c04cf69d4b92d59fb7495eef3ef650804f4f0f20 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Feb 2022 15:01:36 -0500 Subject: [PATCH] Warn if topgrade missing --- topgrade.aliases | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/topgrade.aliases b/topgrade.aliases index c7fb899..5c1a8c6 100644 --- a/topgrade.aliases +++ b/topgrade.aliases @@ -6,6 +6,15 @@ 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 () {