Skip to content

Commit

Permalink
fix: ide basePath select
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhiter committed Jan 15, 2025
1 parent ae0164f commit 25793df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ const JetBrainsGuideModal = ({
const downloadLink = data[selectedIDE.productCode][0].downloads['linux']['link'];
const idePathName = selectedIDE.value;

const basePath = jetbrainsGuideData.workingDir.replace('/project', '');
// NOTE: workingDir /home/devbox/project -> /home/devbox, workingDir maybe change in the future
const basePath = jetbrainsGuideData.workingDir.split('/').slice(0, -1).join('/');

const execDownloadCommand = `
IDE_DIR="${basePath}/.cache/JetBrains/${idePathName}${version}";
Expand Down

0 comments on commit 25793df

Please sign in to comment.