From: Mike Swanson Date: Tue, 16 Feb 2016 02:43:15 +0000 (-0800) Subject: make-windows-release: allow *.cmd files to operate from paths w/ spaces X-Git-Tag: v1.9.1~30 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=88a8744f53ba1a3cc9e0921a9a6d2324f134e4da make-windows-release: allow *.cmd files to operate from paths w/ spaces 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. --- diff --git a/tools/make-windows-release b/tools/make-windows-release index 3e3546d1..1b80d315 100755 --- a/tools/make-windows-release +++ b/tools/make-windows-release @@ -112,7 +112,7 @@ for fil in ./doc/man1/wimlib-imagex-*.1; do 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