This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#cobbled together by Tait | |
#put it in your $PATH and run it as sudo | |
#validate input | |
if [[ $2 == *[!0-9]* ]]; then | |
echo "Valid pin required" | |
exit 1 | |
fi |