Guest User

Untitled

a guest
Jun 16th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. regist(){
  2.  
  3. if ! [ -z "${creds}" ];then
  4.  
  5. check_cred "$creds"
  6.  
  7.  
  8. res= $(curl http://localhost/Register/username=$username&password=$password)
  9.  
  10.  
  11.  
  12. if [ "$?" != "0" ];then
  13. msg="$(jq -r ".message" <<< "${res}")"
  14. echo -e "n ------------------------------------nRegistration Error: $msgn"
  15. exit 1
  16. else
  17.  
  18. echo -e "n ------------------------------------nRegistration Agent: You registered successfully!!n username="${username}"n password="${password}"n"
  19. fi
  20.  
  21. else
  22. echo "Incorrect credentials!"
  23. exit 1
  24. fi
  25.  
  26. }
  27.  
  28. ./frontend: line 104: $'<html>r': command not found
Add Comment
Please, Sign In to add comment