aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/otp
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-11-14 12:29:06 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-14 12:29:06 +0800
commit8aa314aa0b3ba61fa79124a6cd5610119126ec11 (patch)
treec8e12e455689dd5d6d419d28ea39bd201a739d5b /misc/otp
parent659b2fc761b1af19aac47edb81c2797be9b52c7e (diff)
Update
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