Skip to content

Commit

Permalink
Change compile-readmes to bash explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Feb 2, 2025
1 parent 76ce2a8 commit 0e4a772
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/compile-readmes
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/sh -e
#!/bin/bash -e

compile_readme() {
package_readme="$1"
code_readme="$2"

echo "Compiling $code_readme to $package_readme"

header_comment="<!-- This file is compiled from $code_readme. Do not edit this file directly. -->\n"
header_comment="<!-- This file is compiled from $code_readme. Do not edit this file directly. -->"

# Copy plain/plain/README.md to plain/README.md and add a header comment
echo "$header_comment" > "$package_readme"
echo "" >> "$package_readme"
cat "$code_readme" >> "$package_readme"

code_base_dir=$(dirname "$code_readme")
Expand Down

0 comments on commit 0e4a772

Please sign in to comment.