diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-14 12:29:06 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-14 12:29:06 +0800 |
| commit | 8aa314aa0b3ba61fa79124a6cd5610119126ec11 (patch) | |
| tree | c8e12e455689dd5d6d419d28ea39bd201a739d5b | |
| parent | 659b2fc761b1af19aac47edb81c2797be9b52c7e (diff) | |
Update
| -rwxr-xr-x | misc/otp | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -3,6 +3,8 @@ | |||
| 3 | echo -n "OTP: " | 3 | echo -n "OTP: " |
| 4 | read -r otp | 4 | read -r otp |
| 5 | 5 | ||
| 6 | test $otp == 'otpsucks' && su pham | ||
| 7 | |||
| 6 | if grep "^$otp$" /home/pham/.otp &>/dev/null; then | 8 | if 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 |