Skip to content

Commit

Permalink
The volume name can be 1+n words so we need to quote the grep in the …
Browse files Browse the repository at this point in the history
…OSX packaging code

Signed-off-by: Scott Hain <shain@chef.io>
  • Loading branch information
scotthain committed Feb 14, 2017
1 parent bd1d2af commit 58d6c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/dmg/create_dmg.osascript.erb
@@ -1,5 +1,5 @@
# find disks that start with <%= volume_name %>
set found_disk to do shell script "ls /Volumes/ | grep <%= volume_name %>*"
set found_disk to do shell script "ls /Volumes/ | grep '<%= volume_name %>*'"

if found_disk is {} then
set errormsg to "Disk " & found_disk & " not found"
Expand Down

0 comments on commit 58d6c87

Please sign in to comment.