diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-10-15 09:37:46 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-10-15 09:37:46 +0800 |
| commit | 4fca4a119ba5eb7977299bfe5cb516a614d19cd4 (patch) | |
| tree | a39e95b6bfc919c6ec22dfe32ccb9707fb7d7215 /zsh | |
| parent | 8253d2d4adc1a1041a087f15af2f293447eb6fc6 (diff) | |
Update
Diffstat (limited to 'zsh')
| -rw-r--r-- | zsh/zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -53,7 +53,7 @@ function _already_sync_after_wakeup() { | |||
| 53 | 53 | ||
| 54 | latest=$(date -d @`stat -c %X "$WAKEUP"` +%s) | 54 | latest=$(date -d @`stat -c %X "$WAKEUP"` +%s) |
| 55 | # If sync time is older than wakeup time (timestamp in file), then return false | 55 | # If sync time is older than wakeup time (timestamp in file), then return false |
| 56 | if [ $latest -gt $(cat "$WAKEUP") ]; then | 56 | if [ $latest -gt "$(cat $WAKEUP)" ]; then |
| 57 | return 0 | 57 | return 0 |
| 58 | else | 58 | else |
| 59 | return 1 | 59 | return 1 |