Skip to content

Commit

Permalink
Fix shebangs
Browse files Browse the repository at this point in the history
  • Loading branch information
me-and committed Nov 3, 2023
1 parent ad2a8f7 commit 553bd75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python-flask.cygport
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ src_install () {
cd "$B"
python_wheel_install

cd "$D"
cd "$D"/usr/bin
sed -ri '1{/^#!/{s/\.exe//;s/python3\.[0-9]+/python3/}}' flask
for v in ${PYTHON_WHEEL_VERSIONS//:/ }; do
cp usr/bin/flask usr/bin/flask"$v"
sed -r '1{/^#!/{s/python3/python'"$v"'/}}' flask >"flask$v"
done
}

0 comments on commit 553bd75

Please sign in to comment.