Advertisement
Guest User

Untitled

a guest
Sep 20th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. r="\033[31m"
  4. b="\033[1;34m"
  5. g="\033[32m"
  6. w="\033[0m"
  7. bold="\033[1m"
  8. underline="\033[4m"
  9.  
  10. print_info() { echo -e "$b[ INFO ]$w $1"; }
  11. print_fail() { echo -e "$r[ FAIL ]$w $1"; }
  12. print_ok() { echo -e "$b[ OK ]$w $1"; }
  13.  
  14. while getopts "u:p:" flag
  15. do
  16. case "$flag" in
  17. u) USERNAME="${OPTARG}" ;;
  18. p) PASSWORD="${OPTARG}" ;;
  19. esac
  20. done
  21.  
  22. print_info "Authentication Checker"
  23. echo="================================================"
  24. echo "${USERNAME}"
  25. echo "${PASSWORD}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement