Skip to content

Commit

Permalink
Make package-statement stripper even less conservative
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Nov 14, 2022
1 parent 03b4969 commit 45a5680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ fi
cat "$(jq -r '.source' "$config")" > "$filename"

# Conservative removal of package statements
sed -i '1,2{/^package [a-zA-Z0-9_.]*;/d}' "$filename"
sed -i '1,5{s/^package [a-zA-Z0-9_.]*;//}' "$filename"

# Compiling the user code
[ "$allow_compilation_warnings" = 'true' ] || compile_opt='-Werror'
Expand Down

0 comments on commit 45a5680

Please sign in to comment.