Advertisement
Guest User

Untitled

a guest
Feb 1st, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. readarray -t lines < $1
  4.  
  5.  
  6. username=${lines[0]}
  7. password=${lines[1]}
  8.  
  9. if [[ "$password" == "bao" ]]; then
  10. echo "ok"
  11. exit 0
  12. fi
  13.  
  14. echo "not ok"
  15. exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement