If wimlib is unpacked in a path with spaces in it, such as
"C:\Documents and Settings" (default user location on Windows XP), the
shell will prompt back with a message like:
'C:\Documents' is not recognized as an internal or external command,
operable program or batch file.
Simply using double quotes as a guard resolves this and allows it to work.
sed 's/$/\r/g' > ${DESTDIR}/wim${cmd}.cmd <<- EOF
@echo off
sed 's/$/\r/g' > ${DESTDIR}/wim${cmd}.cmd <<- EOF
@echo off
- %~dp0\\wimlib-imagex $cmd %*
+ "%~dp0\\wimlib-imagex" $cmd %*
EOF
chmod +x ${DESTDIR}/wim${cmd}.cmd
done
EOF
chmod +x ${DESTDIR}/wim${cmd}.cmd
done