Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/serverSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ case $KERNEL in
DragonFly)
PLATFORM="dragonfly"
;;
"")
if ! command -v uname; then
echo "Error 'uname' command not found, could not get platform/arch data."
else
echo "Error uname -s yields empty result"
fi
print_install_results_and_exit 1
;;
*)
echo "Error platform not supported: $KERNEL"
print_install_results_and_exit 1
Expand Down Expand Up @@ -329,12 +337,14 @@ if [[ ! -f $SERVER_SCRIPT ]]; then

if (( $? > 0 )); then
echo "Error downloading server from $SERVER_DOWNLOAD_URL"
rm -rf vscode-server.tar.gz
print_install_results_and_exit 1
fi

tar -xf vscode-server.tar.gz --strip-components 1
if (( $? > 0 )); then
echo "Error while extracting server contents"
rm -rf vscode-server.tar.gz
print_install_results_and_exit 1
fi

Expand Down