diff --git a/code-server-3.4.1-linux-amd64.tar.gz b/code-server-3.4.1-linux-amd64.tar.gz new file mode 100644 index 0000000..fccd287 Binary files /dev/null and b/code-server-3.4.1-linux-amd64.tar.gz differ diff --git a/template/script.sh.erb b/template/script.sh.erb index 88a63ad..dd5fff5 100755 --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -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