Advertisement
Guest User

Untitled

a guest
May 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/bash
  2. function test_password {
  3. if [[  !("$#" == 1 && $1 =~ ^[0-9]+$ && -d $1) ]];
  4.   then
  5.     echo "Password OK."
  6.   else
  7.     echo "Bad password!"
  8.   fi
  9. }
  10. test_password $1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement