davidferguson / pibakery

The blocks based, easy to use setup tool for Raspberry Pi
http://www.PiBakery.org
GNU General Public License v3.0
1.48k stars 146 forks source link

PiBakery doesn't work when run from volume with spaces in the volume label #178

Open micksear opened 5 years ago

micksear commented 5 years ago

With v2.0.0, if I run PiBakery from a volume that has spaces in it, I get the following error:

` Elevation error

Command failed: /Volumes/Samsung T5 900GB/dev/personal/pi/PiBakery2-darwin-x64.app/Contents/MacOS/PiBakery --rootwriter --socketpath /tmp/k5el7.sock --imgpath /Users/.../Desktop/2019-04-08-raspbian-stretch-lite.img --drive '{"device":"/dev/disk2","displayName":"/dev/disk2","description":"SD/MMC/MS PRO","size":15867052032,"mountpoints":[{"path":"/Volumes/Untitled"}],"raw":"/dev/rdisk2","protected":false,"system":false,"name":"Untitled"}' --require /Volumes/Samsung T5 900GB/dev/personal/pi/PiBakery2-darwin-x64.app/Contents/Resources/app/main.js sudo-prompt-command: line 2: /Volumes/Samsung: No such file or directory `

You can see from the last line of that error that it's choking on the first space in the volume name. If I remove the spaces from the volume name, it works fine.