Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function test_password {
- if [[ !("$#" == 1 && $1 =~ ^[0-9]+$ && -d $1) ]];
- then
- echo "Password OK."
- else
- echo "Bad password!"
- fi
- }
- test_password $1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement