Commit d84f74f4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack generic.sh: don't use subst in find's exec

parent 567d0dbe
......@@ -28,7 +28,8 @@ done
# check for .py scripts
find $BUILDROOT -name "*.py" | grep -q "\.py$" && flag_python3=1
find $BUILDROOT -name "*.py" -exec subst '1{/python3/n};1i#!/usr/bin/python3' {} \;
# can't use subst in find's exec (subst can be as function only)
find $BUILDROOT -name "*.py" -exec sed -i -e '1{/python3/n};1i#!/usr/bin/python3' {} \;
if [ -n "$flag_python3" ] ; then
if [ "$(epm print info -s)" = "alt" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment