summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlint b/xlint
index f696f8e..e57cf98 100755
--- a/xlint
+++ b/xlint
@@ -81,7 +81,7 @@ variables_order() {
 		esac
 
 		if [ "$variables_end" ]; then
-			return
+			break
 		elif [ "$curr_index" -lt "$max_index" ]; then
 			message="$template: Place $max_index_line= after ${line%%=*}="
 		elif [ "$curr_index" -gt "$max_index" ]; then
@@ -93,7 +93,7 @@ variables_order() {
 			fi
 		fi
 	done < "$template"
-	[ -n "$message" ] && echo "$message"
+	[ "$message" ] && echo "$message"
 }
 
 variables=$(echo -n "#.*