about summary refs log tree commit diff
path: root/pkgs/test/make-binary-wrapper
diff options
context:
space:
mode:
authorTobias Bergkvist <tobias@bergkv.ist>2021-10-04 22:38:14 +0200
committerTobias Bergkvist <tobias@bergkv.ist>2021-10-04 22:38:14 +0200
commit4b833cc141172f88e563692f2458253212d1cf1a (patch)
tree1e2d307ad98774f68412eb103abe72c86098aa0a /pkgs/test/make-binary-wrapper
parentb7d36b8d597df1a9d799fa9d6d8d55137a525570 (diff)
EditorConfig: Switch from tabs to spaces
Diffstat (limited to 'pkgs/test/make-binary-wrapper')
-rw-r--r--pkgs/test/make-binary-wrapper/golden-test-utils.sh34
1 files changed, 17 insertions, 17 deletions
diff --git a/pkgs/test/make-binary-wrapper/golden-test-utils.sh b/pkgs/test/make-binary-wrapper/golden-test-utils.sh
index a0408b5a90896..80e880e11e485 100644
--- a/pkgs/test/make-binary-wrapper/golden-test-utils.sh
+++ b/pkgs/test/make-binary-wrapper/golden-test-utils.sh
@@ -12,23 +12,23 @@
 # Count the number of lines before the output text starts
 # commandLineCount FILE
 commandLineCount() {
-	local n state
-	n=0
-	state="init"
-	while IFS="" read -r p || [ -n "$p" ]; do
-		case $state in
-			init)
-				if [[ $p =~ ^//.*\\$ ]]; then state="comment"
-				elif [[ $p =~ ^//.* ]]; then state="padding"
-				else break
-				fi
-			;;
-			comment) [[ ! $p =~ ^.*\\$ ]] && state="padding";;
-			padding) [ -n "${p// }" ] && break;;
-		esac
-		n=$((n+1))
-	done < "$1"
-	printf '%s' "$n"
+    local n state
+    n=0
+    state="init"
+    while IFS="" read -r p || [ -n "$p" ]; do
+        case $state in
+            init)
+                if [[ $p =~ ^//.*\\$ ]]; then state="comment"
+                elif [[ $p =~ ^//.* ]]; then state="padding"
+                else break
+                fi
+            ;;
+            comment) [[ ! $p =~ ^.*\\$ ]] && state="padding";;
+            padding) [ -n "${p// }" ] && break;;
+        esac
+        n=$((n+1))
+    done < "$1"
+    printf '%s' "$n"
 }
 
 # getInputCommand FILE