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 a7a2c68 commit 172128eCopy full SHA for 172128e
install.sh
@@ -44,16 +44,25 @@ install_zsh() {
44
}
45
46
main() {
47
- if [ -n "${ZSH_VERSION}" ]; then
48
- install_zsh
49
- elif [ "${SHELL}" = "/bin/bash" ]; then
50
- install_bash
51
- else
52
- echo "Current shell is not supported, aborting..."
53
- return 1
54
- fi
+ local shell="$1"
+
+ case "${shell}" in
+ "" | "bash")
+ install_bash
+ ;;
+ "zsh")
55
+ install_zsh
56
57
58
+ *)
59
+ echo "No install script available for '${shell}'."
60
+ echo "Use a different shell or install manually by adding 'source venv-cli/src/venv-cli/venv-cli.sh' to your shell's RC-file"
61
+ return 1
62
63
+ esac
64
65
echo "venv installed"
66
67
-main
68
+main "$@"
0 commit comments