02-script-wrapper.sh: avoid useless use of echo

Co-authored-by: duncaen <duncaen@voidlinux.org>
This commit is contained in:
maxice8 2019-04-14 01:49:00 -03:00 committed by maxice8
parent 23216853d6
commit 3d372ddc32
1 changed files with 5 additions and 2 deletions

View File

@ -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}
}