From 4fca4a119ba5eb7977299bfe5cb516a614d19cd4 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 15 Oct 2023 09:37:46 +0800 Subject: Update --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh') 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() { latest=$(date -d @`stat -c %X "$WAKEUP"` +%s) # If sync time is older than wakeup time (timestamp in file), then return false - if [ $latest -gt $(cat "$WAKEUP") ]; then + if [ $latest -gt "$(cat $WAKEUP)" ]; then return 0 else return 1 -- cgit v1.2.3-70-g09d2