From fb5d7af21f271dc3a6bb89eaa1e6f0e72fd3703f Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 17 Oct 2024 11:43:35 +0400 Subject: [PATCH] build custom telosearchlr-v1.0.0 --- recipes/telosearchlr/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/telosearchlr/build.sh b/recipes/telosearchlr/build.sh index 9831536fbaa0d..c01fdff0332a9 100644 --- a/recipes/telosearchlr/build.sh +++ b/recipes/telosearchlr/build.sh @@ -2,7 +2,9 @@ mkdir -p ${PREFIX}/bin for f in *.py; do -sed -i "1i #!/usr/bin/env python3" "$f" + if ! grep -q "^#!/usr/bin/env python3" "$f"; then + sed -i "1i #!/usr/bin/env python3" "$f" + fi done chmod +x *.py mv *.py $PREFIX/bin