diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-06 08:25:41 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-06 08:25:41 +0800 |
| commit | 0964d42455f792637dcf0df536138ea597d6a032 (patch) | |
| tree | 65d5128a9e15010c4b5b2a6af6b4e5ff4b365219 | |
| parent | a6061b61fa52b5c810c4214cc0682f4b21f1592c (diff) | |
Update
| -rwxr-xr-x | misc/otp | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | echo -n "OTP: " | 3 | echo -n "OTP: " |
| 4 | read -r otp | 4 | read -r otp |
| 5 | 5 | ||
| 6 | if grep "^$otp$" /home/pham/.otp; then | 6 | if 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 |