fix check command curl
This commit is contained in:
parent
296fbfffe2
commit
0a3e297a9e
|
@ -106,7 +106,7 @@ case "$1" in
|
||||||
|
|
||||||
-vv)
|
-vv)
|
||||||
awk 'NR==2 {print "# Installed:",$3}' "/usr/local/bin/upd"
|
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}'
|
curl -s "$upd_repo_upd" | awk 'NR==2 {print "# Available:",$3}'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
# Automatic Updater
|
# Automatic Updater
|
||||||
#======================================================================
|
#======================================================================
|
||||||
upd__Updater() {
|
upd__Updater() {
|
||||||
|
if__command curl
|
||||||
upd_cur=`awk 'NR==2 {print $3}' "/usr/local/bin/upd"`
|
upd_cur=`awk 'NR==2 {print $3}' "/usr/local/bin/upd"`
|
||||||
upd_onl=`curl -s "$upd_repo_upd" | awk 'NR==2 {print $3}'`
|
upd_onl=`curl -s "$upd_repo_upd" | awk 'NR==2 {print $3}'`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue