clickatell icon indicating copy to clipboard operation
clickatell copied to clipboard

ENV['HOME'] isn't everywhere

Open ripienaar opened this issue 15 years ago • 2 comments

Not all shells and all environments sets ENV[HOME], line 90 of options.rb has:

      config_file = File.open(File.join(ENV['HOME'], '.clickatell'))

which raises an exception and dies without sending sms if HOME isn't set

ripienaar avatar Feb 16 '10 14:02 ripienaar

btw the error is:

`join': can't convert nil into String (TypeError)

you could just catch that as well in your existing rescue block

ripienaar avatar Feb 16 '10 14:02 ripienaar

Thanks for reporting; patches are welcome. :)

lukeredpath avatar Feb 17 '10 11:02 lukeredpath