From 0964d42455f792637dcf0df536138ea597d6a032 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 6 Nov 2024 08:25:41 +0800 Subject: Update --- misc/otp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/otp b/misc/otp index ccdc1f3..4b31447 100755 --- a/misc/otp +++ b/misc/otp @@ -3,7 +3,7 @@ echo -n "OTP: " read -r otp -if grep "^$otp$" /home/pham/.otp; then +if grep "^$otp$" /home/pham/.otp &>/dev/null; then TEMP=`mktemp` sed "/^$otp$/ d" /home/pham/.otp >$TEMP cat $TEMP > /home/pham/.otp -- cgit v1.2.3-70-g09d2