02-script-wrapper.sh: avoid useless use of echo
Co-authored-by: duncaen <duncaen@voidlinux.org>
This commit is contained in:
parent
23216853d6
commit
3d372ddc32
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue