Skip to content

Commit

Permalink
Fix the string comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Furlan committed Jun 1, 2011
1 parent 0ed4a1e commit e22baac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/minify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ is_file_modified() {
[ -f "${1}" ] || return 0
[ -f "${2}" ] || return 1

MOD1=$(stat "${1}" | grep ^Modify:)
MOD2=$(stat "${2}" | grep ^Modify:)
MOD1=$(stat "${1}" | grep ^Modify: | cut -c 9-27)
MOD2=$(stat "${2}" | grep ^Modify: | cut -c 9-27)

if [[ "$MOD1" > "$MOD2" ]]; then
if [ "$MOD1" \> "$MOD2" ]; then
return 1
else
return 0
Expand Down

0 comments on commit e22baac

Please sign in to comment.