From 0a3e297a9e5b899804f076603213a47e5adea9dc Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Thu, 24 Mar 2022 12:34:43 +0100 Subject: [PATCH] fix check command curl --- usr/local/bin/upd | 2 +- var/lib/upd/scripts/updater | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/local/bin/upd b/usr/local/bin/upd index 2e3354f..46805d4 100755 --- a/usr/local/bin/upd +++ b/usr/local/bin/upd @@ -106,7 +106,7 @@ case "$1" in -vv) awk 'NR==2 {print "# Installed:",$3}' "/usr/local/bin/upd" - if__command curl*- + if__command curl curl -s "$upd_repo_upd" | awk 'NR==2 {print "# Available:",$3}' ;; diff --git a/var/lib/upd/scripts/updater b/var/lib/upd/scripts/updater index 238fdfc..1663fa7 100644 --- a/var/lib/upd/scripts/updater +++ b/var/lib/upd/scripts/updater @@ -8,6 +8,7 @@ # Automatic Updater #====================================================================== upd__Updater() { +if__command curl upd_cur=`awk 'NR==2 {print $3}' "/usr/local/bin/upd"` upd_onl=`curl -s "$upd_repo_upd" | awk 'NR==2 {print $3}'`