losoliveirasilva / rofigen

Rofi menu generator
71 stars 4 forks source link

Fix issue with spaces in filenames #5

Closed Nmoleo64 closed 2 years ago

Nmoleo64 commented 2 years ago

Related to issue #4

If the path of the script I am passing to rofigen.sh has a space in it, the script breaks even if I use a backslash or double/single quotes to escape it.

The issue appears to be line 3 of rofigen: source $1

I replaced it with source "$1" and that fixed the issue for me,

Nmoleo64 commented 2 years ago

You're right, it should be source "$1". I wasn't paying enough attention. Sorry about that!

I created another commit and it appears to show in the PR here