mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
utils: create_cmdline_shebang_wrapper whitespace and sed refactor
Correct whitespace to match the rest of the code in utils. Refactored sed expression with a simpler equivalent. (From OE-Core rev: 68f49af704a4e808ad274d689e884923776edfec) Signed-off-by: Paulo Neves <ptsneves@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
48e4956d71
commit
0e84a9d697
@@ -199,7 +199,7 @@ create_cmdline_shebang_wrapper () {
|
||||
echo "Generating wrapper script for $cmd"
|
||||
|
||||
# Strip #! and get remaining interpreter + arg
|
||||
argument="$(basename "$(head -n1 $cmd | sed -e 's|#![ ]*||g' )")"
|
||||
argument="$(sed -ne 's/^#! *//p;q' $cmd)"
|
||||
# strip the shebang from the real script as we do not want it to be usable anyway
|
||||
tail -n +2 $cmd > $cmd.real
|
||||
cmdname=$(basename $cmd)
|
||||
|
||||
Reference in New Issue
Block a user