shell: format with shfmt
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I546a77dbffee2159553e32f1d1c9a419bf809204
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..21f12ed
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,6 @@
+# Config for shfmt
+[{gen/regenerate-meson,gen/run-ci}]
+indent_style = space
+indent_size = 4
+switch_case_indent = true
+space_redirects = true
diff --git a/gen/run-ci b/gen/run-ci
index 49c9544..dba8109 100755
--- a/gen/run-ci
+++ b/gen/run-ci
@@ -6,11 +6,11 @@
git --no-pager diff --exit-code -- . || rc=$?
untracked="$(git ls-files --others --exclude-standard -- .)" || rc=$?
if [ -n "$untracked" ]; then
- echo "Untracked files:" >&2
- echo "$untracked" >&2
- rc=1
+ echo "Untracked files:" >&2
+ echo "$untracked" >&2
+ rc=1
fi
-if (( rc != 0 )); then
- echo "Generated meson files differ from expected values" >&2
- exit 1
+if ((rc != 0)); then
+ echo "Generated meson files differ from expected values" >&2
+ exit 1
fi