aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-10-15 09:37:46 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-10-15 09:37:46 +0800
commit4fca4a119ba5eb7977299bfe5cb516a614d19cd4 (patch)
treea39e95b6bfc919c6ec22dfe32ccb9707fb7d7215 /zsh
parent8253d2d4adc1a1041a087f15af2f293447eb6fc6 (diff)
Update
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 7492456..d361cf5 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -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