diff options
Diffstat (limited to 'bin/dtas-player')
-rwxr-xr-x | bin/dtas-player | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/dtas-player b/bin/dtas-player index 0c2d53e..49a0445 100755 --- a/bin/dtas-player +++ b/bin/dtas-player @@ -4,10 +4,9 @@ Thread.abort_on_exception = $stderr.sync = $stdout.sync = true require 'yaml' require 'dtas/player' -sock = (ENV["DTAS_PLAYER_SOCK"] || - File.expand_path("~/.dtas/player.sock")).b +sock = (ENV["DTAS_PLAYER_SOCK"] || File.expand_path("~/.dtas/player.sock")) state = (ENV["DTAS_PLAYER_STATE"] || - File.expand_path("~/.dtas/player_state.yml")).b + File.expand_path("~/.dtas/player_state.yml")) [ sock, state ].each do |file| dir = File.dirname(file) next if File.directory?(dir) |