Skip to content

Commit

Permalink
allow ./setup.sh to fail gracefully (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
penggu committed Apr 6, 2023
1 parent 09c0149 commit aa10590
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions setup.sh
@@ -1,4 +1,19 @@
#!/bin/bash

function command_exists() {
command -v "$1" &> /dev/null
}

if ! command_exists wget; then
echo "wget is not installed. Please install wget to use this script."
exit 1
fi

if ! command_exists unzip; then
echo "unzip is not installed. Please install unzip to use this script."
exit 1
fi

wget https://cursor.so/resources.zip
wget https://cursor.so/lsp.zip

Expand Down

0 comments on commit aa10590

Please sign in to comment.