Skip to content

Commit 073edf0

Browse files
committed
Ensure archive was downloaded and extracted before executing its contents
1 parent 634af3b commit 073edf0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

generic/install-jetbrains-tools

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@ base_filename="jetbrains-toolbox-$JETBRAINS_TOOLBOX_VERSION"
99

1010
curl -L -o /tmp/$base_filename.tar.gz https://download.jetbrains.com/toolbox/$base_filename.tar.gz
1111
tar xzvf /tmp/$base_filename.tar.gz -C /tmp
12+
13+
if [ -f "/tmp/$base_filename/bin/jetbrains-toolbox" ]; then
14+
echo "JetBrains Toolbox downloaded and extracted successfully."
15+
else
16+
echo "Failed to download or extract JetBrains Toolbox."
17+
exit 1
18+
fi
1219
"/tmp/$base_filename/bin/jetbrains-toolbox" >/dev/null 2>&1 &
1320
echo "JetBrains Toolbox installation initiated. Please complete the setup through the application interface."

0 commit comments

Comments
 (0)