Browse Source

Fix curl call

curl wasn't called properly, due to '&' character exist in url without quote around it
Clark Chen 6 years ago
parent
commit
e75b62efad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-activate-vesta-license

+ 1 - 1
bin/v-activate-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/activate.php?licence_key=$license&module=$module)
+answer=$(curl -s "$v_host/activate.php?licence_key=$license&module=$module")
 check_result $? "cant' connect to vestacp.com " $E_CONNECT
 check_result $? "cant' connect to vestacp.com " $E_CONNECT
 
 
 # Checking server answer
 # Checking server answer