Ver Fonte

Fix curl call

curl wasn't called properly, due to '&' character exist in url without quote around it
Clark Chen há 6 anos atrás
pai
commit
e4710ae715
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      bin/v-deactivate-vesta-license

+ 1 - 1
bin/v-deactivate-vesta-license

@@ -35,7 +35,7 @@ check_args '2' "$#" 'MODULE LICENSE'
 
 
 # Activating license
 # Activating license
 v_host='https://vestacp.com/checkout'
 v_host='https://vestacp.com/checkout'
-answer=$(curl -s $v_host/cancel.php?licence_key=$license)
+answer=$(curl -s "$v_host/cancel.php?licence_key=$license")
 check_result $? "cant' connect to vestacp.com " $E_CONNECT
 check_result $? "cant' connect to vestacp.com " $E_CONNECT
 
 
 # Checking server answer
 # Checking server answer