You are not logged in.

#1 2020-06-07 17:44:48

strexfive
Member
Registered: 2014-03-17
Posts: 17

mkarchiso fails for directories with spaces in name

I call releng/build.sh from my custom script, which in turn runs /usr/bin/mkarchiso. My custom script exists in a directory that contains spaces in the name.

/usr/bin/mkarchiso executes this command on lines 254 and 264:

cd ${OLDPWD}

Because of the spaces in the directory name, line 254 fails with this error:

/usr/bin/mkarchiso: line 254: cd: too many arguments

Am I missing something, or shouldn't these lines be corrected to this? Quoted:

cd "${OLDPWD}"

When OLDPWD is quoted in /usr/bin/mkarchiso, my script completes correctly. Is this a bug I should report?

Offline

#2 2020-06-07 18:27:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: mkarchiso fails for directories with spaces in name

Yes.

Mod note: not an installation issue, moving to Apps & DEs.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-06-07 19:48:45

strexfive
Member
Registered: 2014-03-17
Posts: 17

Re: mkarchiso fails for directories with spaces in name

Ok, will do.

Offline

Board footer

Powered by FluxBB