Skip to content

Commit

Permalink
Fix updates not being properly installed
Browse files Browse the repository at this point in the history
Very stupid misnamed variable
  • Loading branch information
MattiSG committed Jan 9, 2014
1 parent 7587bbd commit f20bf35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adblock
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ should_update() {
local modification_time_epoch=$(LANG=en_US date -j -f "%a, %d %b %Y %T %Z" "$modification_time" "+%s") # we need to specify the locale for this command to allow `date` to parse the date no matter the machine's locale
local update_time=$(stat -f %m "$TARGET")

if [[ $last_modified_epoch -gt $update_time ]]
if [[ $modification_time_epoch -gt $update_time ]]
then
echo "Recent update from $modification_time."
return 0
Expand Down

0 comments on commit f20bf35

Please sign in to comment.