We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a29acc8 commit a138a29Copy full SHA for a138a29
1 file changed
install/desktop/app-cursor.sh
@@ -0,0 +1,17 @@
1
+#!/bin/bash
2
+SCRIPT_NAME="${BASH_SOURCE[0]}"
3
+SCRIPT_PATH="$(dirname "$(realpath "${SCRIPT_NAME}")")"
4
+source "${SCRIPT_PATH}/../../err.sh" "${SCRIPT_NAME}"
5
+source "${SCRIPT_PATH}/../../log.sh" "${SCRIPT_NAME}"
6
+
7
+CURSOR_BOOTSTRAP_VERSION="2.4"
8
9
+echolog "Installing Cursor"
10
11
+if command -v "cursor" &>/dev/null; then
12
+ echolog "Cursor already installed"
13
+else
14
+ curl -Lo cursor.deb "https://api2.cursor.sh/updates/download/golden/linux-x64-deb/cursor/${CURSOR_BOOTSTRAP_VERSION}"
15
+ sudo dpkg -i cursor.deb
16
+ rm -f cursor.deb
17
+fi
0 commit comments