Browse code

Fixed auto update.

Paramater substitution instead of command subsitution was being used
causing the calculation of time since last check to be incorrect.

Christopher Chow authored on 04/02/2011 at 00:33:20
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@ then
16 16
     _update_zsh_update && return 0;
17 17
   fi
18 18
 
19
-  epoch_diff=$((${_current_epoch} - $LAST_EPOCH))
19
+  epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
20 20
   if [ $epoch_diff -gt 6 ]
21 21
   then
22 22
     echo "[Oh My Zsh] Would you like to check for updates?"