From 3d372ddc321222dd91822b47c89defc11ee776f4 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 14 Apr 2019 01:49:00 -0300 Subject: [PATCH] 02-script-wrapper.sh: avoid useless use of echo Co-authored-by: duncaen --- common/hooks/pre-configure/02-script-wrapper.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/hooks/pre-configure/02-script-wrapper.sh b/common/hooks/pre-configure/02-script-wrapper.sh index 6d022447fff..e6092042b99 100644 --- a/common/hooks/pre-configure/02-script-wrapper.sh +++ b/common/hooks/pre-configure/02-script-wrapper.sh @@ -8,8 +8,11 @@ generic_wrapper() { [ ! -x ${XBPS_CROSS_BASE}/usr/bin/${wrapper} ] && return 0 [ -x ${XBPS_WRAPPERDIR}/${wrapper} ] && return 0 - echo "#!/bin/sh" >> ${XBPS_WRAPPERDIR}/${wrapper} - echo "exec ${XBPS_CROSS_BASE}/usr/bin/${wrapper} --prefix=${XBPS_CROSS_BASE}/usr \"\$@\"" >> ${XBPS_WRAPPERDIR}/${wrapper} + cat >>${XBPS_WRAPPERDIR}/${wrapper}<<_EOF +#!/bin/sh +exec ${XBPS_CROSS_BASE}/usr/bin/${wrapper} --prefix=${XBPS_CROSS_BASE}/usr "\$@" +_EOF + chmod 755 ${XBPS_WRAPPERDIR}/${wrapper} }