mirror of https://github.com/getcursor/cursor
allow ./setup.sh to fail gracefully (#425)
parent
09c014936b
commit
aa10590e85
15
setup.sh
15
setup.sh
|
@ -1,4 +1,19 @@
|
||||||
#!/bin/bash
|
#!/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/resources.zip
|
||||||
wget https://cursor.so/lsp.zip
|
wget https://cursor.so/lsp.zip
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue