We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe5adc commit 8cdbf5aCopy full SHA for 8cdbf5a
cvm.sh
@@ -170,11 +170,30 @@ checkDependencies() {
170
done
171
}
172
173
+isShellSupported() {
174
+ case "$(basename "$SHELL")" in
175
+ sh|dash|bash|zsh)
176
+ return 0
177
+ ;;
178
+ *)
179
+ return 1
180
181
+ esac
182
+}
183
+
184
185
186
#
187
# Execution
188
189
+if ! isShellSupported; then
190
+ echo "Error: Unsupported shell. Please use bash, zsh, or sh."
191
+ echo "Currently using: $(basename "$SHELL")"
192
+ echo "Open a github issue if you want to add support for your shell:"
193
+ echo "https://github.com/ivstiv/cursor-version-manager/issues"
194
+ exit 1
195
+fi
196
197
checkDependencies
198
mkdir -p "$DOWNLOADS_DIR"
199
0 commit comments