Skip to content
Snippets Groups Projects
Unverified Commit b03496ae authored by Jan-Niklas Burfeind's avatar Jan-Niklas Burfeind Committed by GitHub
Browse files

Merge pull request #2743 from AiyionPrime/fix-shell-indentation

treewide: fix indentation in .sh files
parents 40cf3bc9 2aa3527f
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,8 @@ indent_size = 4
indent_style = space
indent_size = 2
[*.sh]
[*.yml]
indent_style = space
indent_size = 2
......
......@@ -29,11 +29,22 @@ lower="$(mktemp)"
trap 'rm -f "$upper" "$lower"' EXIT
awk 'BEGIN { sep=0 }
/^---$/ { sep=1; next }
{ if(sep==0) print > "'"$upper"'";
else print > "'"$lower"'"}' \
"$manifest"
awk 'BEGIN {
sep = 0
}
/^---$/ {
sep = 1;
next
}
{
if(sep == 0) {
print > "'"$upper"'"
} else {
print > "'"$lower"'"
}
}' "$manifest"
ecdsasign "$upper" < "$SECRET" >> "$lower"
......
......@@ -21,11 +21,22 @@ upper="$(mktemp)"
lower="$(mktemp)"
ret=1
awk "BEGIN { sep=0 }
/^---\$/ { sep=1; next }
{ if(sep==0) print > \"$upper\";
else print > \"$lower\"}" \
"$manifest"
awk 'BEGIN {
sep = 0
}
/^---$/ {
sep = 1;
next
}
{
if(sep == 0) {
print > "'"$upper"'"
} else {
print > "'"$lower"'"
}
}' "$manifest"
while read -r line
do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment