Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix headless mode (#12960)

Conrad Irwine2cfbc54ad20
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index c3a39031fa3..95a118edc58 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -500,6 +500,7 @@ fn handle_open_request(request: OpenRequest, app_state: Arc<AppState>, cx: &mut
let app_state = app_state.clone();
cx.spawn(move |cx| handle_cli_connection(connection, app_state, cx))
.detach();
+ return;
}
if let Err(e) = init_ui(app_state.clone(), cx) {
diff --git a/script/install.sh b/script/install.sh
index b446fb771c3..ac2d9d3a44b 100755
--- a/script/install.sh
+++ b/script/install.sh
@@ -47,7 +47,7 @@ main() {
}
linux() {
- if [[ -n "${ZED_BUNDLE_PATH:-}" ]]; then
+ if [ -n "${ZED_BUNDLE_PATH:-}" ]; then
cp "$ZED_BUNDLE_PATH" "$temp/zed-linux-$arch.tar.gz"
else
echo "Downloading Zed"