diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-10 22:01:11 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-10 22:01:11 -0400 |
commit | d404068c910c9a953e281d3c8ac62af77e3cac24 (patch) | |
tree | 536dd8dc2d429053fe8c66993a3b59c2eba947bb | |
parent | 614f6cd4bf972b82ace294b8133122fdff5dc3a1 (diff) |
fix an error in checksource
-rw-r--r-- | jh-checksource.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jh-checksource.sh b/jh-checksource.sh index b416427..101a187 100644 --- a/jh-checksource.sh +++ b/jh-checksource.sh @@ -16,12 +16,12 @@ find . -type f -exec file -F"$sep" {} + | while read line; do type="$(echo "$line"|sed "s${resep}.*${sep}\s*${resep}${resep}")" safe=false for filename in "${safe_files[@]}"; do - if [[ $file = "$filename" ]]; then + if [[ "$file" = "$filename" ]]; then safe=true; fi done for pattern in "${safe_patterns[@]}"; do - if [[ $type ~= "$pattern" ]]; then + if [[ "$type" =~ "$pattern" ]]; then safe=true; fi done |