Przeglądaj źródła

Fix curl call

curl wasn't called properly, due to '&' character exist in url without quote around it
Clark Chen 6 lat temu
rodzic
commit
e4710ae715
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 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
 
 # Checking server answer