aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-11-06 08:25:41 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-06 08:25:41 +0800
commit0964d42455f792637dcf0df536138ea597d6a032 (patch)
tree65d5128a9e15010c4b5b2a6af6b4e5ff4b365219 /misc
parenta6061b61fa52b5c810c4214cc0682f4b21f1592c (diff)
Update
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/otp2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/otp b/misc/otp
index ccdc1f3..4b31447 100755
--- a/misc/otp
+++ b/misc/otp
@@ -3,7 +3,7 @@
3echo -n "OTP: " 3echo -n "OTP: "
4read -r otp 4read -r otp
5 5
6if grep "^$otp$" /home/pham/.otp; then 6if grep "^$otp$" /home/pham/.otp &>/dev/null; then
7 TEMP=`mktemp` 7 TEMP=`mktemp`
8 sed "/^$otp$/ d" /home/pham/.otp >$TEMP 8 sed "/^$otp$/ d" /home/pham/.otp >$TEMP
9 cat $TEMP > /home/pham/.otp 9 cat $TEMP > /home/pham/.otp