fix check command curl

This commit is contained in:
Cyrille L 2022-03-24 12:34:43 +01:00
parent 296fbfffe2
commit 0a3e297a9e
2 changed files with 2 additions and 1 deletions

View File

@ -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}'
;;

View File

@ -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}'`