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:
Yann E. MORIN" 2011-03-19 21:43:26 +01:00
parent 0eacc3b10a
commit db6382192f

View File

@ -30,7 +30,7 @@ do_finish() {
; do
_type="$( file "${_t}" |cut -d ' ' -f 2- )"
case "${_type}" in
*"script text executable")
*script*executable)
;;
*executable*)
CT_DoExecLog ALL ${CT_HOST}-strip ${strip_args} "${_t}"