File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,14 +85,14 @@ runs:
8585
8686 VERSION_INPUT="${GEMINI_CLI_VERSION:-latest}"
8787
88- if [[ "$VERSION_INPUT" == "latest" || "$VERSION_INPUT" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9\.-]+)?(\+[a-zA-Z0-9\.-]+)?$ ]]; then
89- echo "Installing Gemini CLI from npm: @google/gemini-cli@$VERSION_INPUT"
90- npm install -g @google/gemini-cli@$ VERSION_INPUT
88+ if [[ "${ VERSION_INPUT} " == "latest" || "${ VERSION_INPUT} " =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9\.-]+)?(\+[a-zA-Z0-9\.-]+)?$ ]]; then
89+ echo "Installing Gemini CLI from npm: @google/gemini-cli@${ VERSION_INPUT} "
90+ npm install -g @google/gemini-cli@"${ VERSION_INPUT}"
9191 else
92- echo "Installing Gemini CLI from GitHub: github:google-gemini/gemini-cli#$VERSION_INPUT"
92+ echo "Installing Gemini CLI from GitHub: github:google-gemini/gemini-cli#${ VERSION_INPUT} "
9393 git clone https://github.com/google-gemini/gemini-cli.git
9494 cd gemini-cli
95- git checkout $ VERSION_INPUT
95+ git checkout "${ VERSION_INPUT}"
9696 npm install
9797 npm run bundle
9898 npm install -g .
You can’t perform that action at this time.
0 commit comments