Skip to content

Commit

Permalink
Remove unnecessary working dir check
Browse files Browse the repository at this point in the history
  • Loading branch information
msquee committed Jul 20, 2020
1 parent ddc1f4f commit f7a42bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added code-server-3.4.1-linux-amd64.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ app_root = BatchConnect::App.from_token(session.token).root.realpath
working_dir = Pathname.new(context.working_dir)

# Ensure that code-server always starts up in either a user defined directory or the home directory.
if ! working_dir.exist? || working_dir.to_s.empty?
if ! working_dir.exist?
working_dir = Pathname.new(ENV['HOME'])
elsif working_dir.file?
working_dir = working_dir.parent
Expand Down

0 comments on commit f7a42bf

Please sign in to comment.