Skip to content

Commit

Permalink
Fix to replace shebang on theme upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jul 24, 2024
1 parent 7e01fb0 commit 24464c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions theme-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ directory. This is strongly \e[3mnot advised\e[0m for any production system!"
rm -rf "$DIR/authentic-theme"/*
mv "$DIR/.~authentic-theme"/* "$DIR/authentic-theme/"
rm -rf "$DIR/.~authentic-theme"
shebang=$(head -n 1 "$DIR/miniserv.pl")
find "$DIR/authentic-theme" -type f -exec sed -i -e '1s|^#!.*|'"$shebang"'|' {} +

# Local clear
rm -f "$DIR/authentic-theme/README.md"
Expand Down

0 comments on commit 24464c9

Please sign in to comment.