mirror of
https://abf.rosa.ru/djam/python3.11.git
synced 2025-02-23 10:12:51 +00:00
Updated python3.11-shebang-sanity.sh
This commit is contained in:
parent
5fe13dbd49
commit
2bf071ff26
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@ set -efu
|
|||
find "$RPM_BUILD_ROOT" -type f -print | while read -r line ; do
|
||||
if file "$line" | grep -q ELF ; then continue ; fi
|
||||
if head -n 1 "$line" | grep -qE '([[:blank:]])*#([[:blank:]])*\!([[:blank:]])*.*python3' ; then
|
||||
sed -i -e '1s,python3,python3.11,g' -e '1s,python3.8.8,python3.8,g' "$line"
|
||||
sed -i -e '1s,python3,python3.11,g' -e '1s,python3.11.11,python3.11,g' "$line"
|
||||
sed -E -i "$line" \
|
||||
-e '1s,([[:blank:]])*#([[:blank:]])*\!([[:blank:]])*/usr/bin/env([[:blank:]])*python3.11,#!/usr/libexec/python3.11,g' \
|
||||
-e '1s,([[:blank:]])*#([[:blank:]])*\!([[:blank:]])*/usr/bin/python3.8,#!/usr/libexec/python3.11,g'
|
||||
-e '1s,([[:blank:]])*#([[:blank:]])*\!([[:blank:]])*/usr/bin/python3.11,#!/usr/libexec/python3.11,g'
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue