Skip to content

Commit

Permalink
Allow install.sh to be merged before bundle update
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Jun 4, 2024
1 parent 9094928 commit bf1814c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ linux() {
mkdir -p "$HOME/.local/bin" "$HOME/.local/share/applications"

# Link the binary
ln -sf ~/.local/zed$suffix.app/bin/zed "$HOME/.local/bin/zed"
if [ -f ~/.local/zed$suffix.app/bin/zed ]; then
ln -sf ~/.local/zed$suffix.app/bin/zed "$HOME/.local/bin/zed"
else
# support for versions before 0.139.x.
ln -sf ~/.local/zed$suffix.app/bin/cli "$HOME/.local/bin/zed"
fi

# Copy .desktop file
desktop_file_path="$HOME/.local/share/applications/${appid}.desktop"
Expand Down

0 comments on commit bf1814c

Please sign in to comment.