benhoskings/babushka — Issue #175: Problems with hdiutil syntax in resource.rb on Lion
Author: requnix
Created: 2011-12-10 21:18:09+00:00
State: open

I've been having issues with some of the reps on Lion. I wrote a really simple dep to install the Bitcoin client which you can check at `requnix:bitcoin`.

It wouldn't run on my machine until I changed line 177 in `lib/babushka/resource.rb` from:

```ruby
output = log_shell "Attaching #{filename}", "hdiutil attach '#{filename.p.basename}'"
```
to

```ruby
output = log_shell "Attaching #{filename}", "hdiutil attach #{filename.p.basename}"
```

Now this solved my mounting issue, but I'm sure those single quotes are there for a reason. The error I was getting was: `invalid byte sequence in US-ASCII`, but I couldn't track down which string was in `US-ASCII`. I even tried adding magic headers everywhere. :)