summaryrefslogtreecommitdiff
path: root/jh-checksource.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jh-checksource.sh')
-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