Skip to content

Commit

Permalink
fix: config file format (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiweichi authored Sep 24, 2024
1 parent 5b84246 commit 0414a23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker/scripts/gen-configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ gen_config_contracts_toml() {
# format_config_file will add "scrollConfig: |" to the first line and indent the rest
format_config_file() {
local file="$1"
local config_scroll_key="configScroll: |"
local config_scroll_key="scrollConfig: |"
temp_file=$(mktemp)

{
echo $config_scroll_key
while IFS= read -r line; do
echo " $line"
done < "$file"
echo $config_scroll_key
while IFS= read -r line; do
echo " $line"
done < <(grep "" "$file")
} > "$temp_file"

mv "$temp_file" "$file"
Expand Down

0 comments on commit 0414a23

Please sign in to comment.