summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-10 22:01:11 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-10 22:01:11 -0400
commitd404068c910c9a953e281d3c8ac62af77e3cac24 (patch)
tree536dd8dc2d429053fe8c66993a3b59c2eba947bb
parent614f6cd4bf972b82ace294b8133122fdff5dc3a1 (diff)
fix an error in checksource
-rw-r--r--jh-checksource.sh4
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