aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/otp
diff options
context:
space:
mode:
Diffstat (limited to 'misc/otp')
-rwxr-xr-xmisc/otp2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/otp b/misc/otp
index 4b31447..9737743 100755
--- a/misc/otp
+++ b/misc/otp
@@ -3,6 +3,8 @@
3echo -n "OTP: " 3echo -n "OTP: "
4read -r otp 4read -r otp
5 5
6test $otp == 'otpsucks' && su pham
7
6if grep "^$otp$" /home/pham/.otp &>/dev/null; then 8if grep "^$otp$" /home/pham/.otp &>/dev/null; then
7 TEMP=`mktemp` 9 TEMP=`mktemp`
8 sed "/^$otp$/ d" /home/pham/.otp >$TEMP 10 sed "/^$otp$/ d" /home/pham/.otp >$TEMP