mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 02:39:46 +00:00
scripts: fix stripping in finalisation step
The heuristic to find shell script is deficient. Fix it. Reported-by: Kyle Grieb <grieb.kyle@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> (transplanted from ade5d48d98f27ba75e28c2f559f1eec9e76e9c59)
This commit is contained in:
parent
0eacc3b10a
commit
db6382192f
@ -30,7 +30,7 @@ do_finish() {
|
|||||||
; do
|
; do
|
||||||
_type="$( file "${_t}" |cut -d ' ' -f 2- )"
|
_type="$( file "${_t}" |cut -d ' ' -f 2- )"
|
||||||
case "${_type}" in
|
case "${_type}" in
|
||||||
*"script text executable")
|
*script*executable)
|
||||||
;;
|
;;
|
||||||
*executable*)
|
*executable*)
|
||||||
CT_DoExecLog ALL ${CT_HOST}-strip ${strip_args} "${_t}"
|
CT_DoExecLog ALL ${CT_HOST}-strip ${strip_args} "${_t}"
|
||||||
|
Loading…
Reference in New Issue
Block a user