fix: ambiguous literals (#461)

This commit is contained in:
Mingholy
2025-08-27 15:23:21 +08:00
committed by GitHub
parent 009e083b73
commit 347e606366
9 changed files with 13 additions and 12 deletions

View File

@@ -136,7 +136,7 @@ function buildImage(imageName, dockerfile) {
if (isWindows) {
// PowerShell doesn't support <() process substitution.
// Create a temporary auth file that we will clean up after.
tempAuthFile = join(os.tmpdir(), `gemini-auth-${Date.now()}.json`);
tempAuthFile = join(os.tmpdir(), `qwen-auth-${Date.now()}.json`);
writeFileSync(tempAuthFile, '{}');
buildCommandArgs = `--authfile="${tempAuthFile}"`;
} else {

View File

@@ -5,7 +5,7 @@ set -euo pipefail
# Determine the project directory
PROJECT_DIR=$(cd "$(dirname "$0")/.." && pwd)
ALIAS_COMMAND="alias gemini='node "${PROJECT_DIR}/scripts/start.js"'"
ALIAS_COMMAND="alias qwen='node "${PROJECT_DIR}/scripts/start.js"'"
# Detect shell and set config file path
if [[ "${SHELL}" == *"/bash" ]]; then
@@ -22,8 +22,8 @@ echo " ${ALIAS_COMMAND}"
echo ""
# Check if the alias already exists
if grep -q "alias gemini=" "${CONFIG_FILE}"; then
echo "A 'gemini' alias already exists in ${CONFIG_FILE}. No changes were made."
if grep -q "alias qwen=" "${CONFIG_FILE}"; then
echo "A 'qwen' alias already exists in ${CONFIG_FILE}. No changes were made."
exit 0
fi
@@ -33,7 +33,7 @@ if [[ "${REPLY}" =~ ^[Yy]$ ]]; then
echo "${ALIAS_COMMAND}" >> "${CONFIG_FILE}"
echo ""
echo "Alias added to ${CONFIG_FILE}."
echo "Please run 'source ${CONFIG_FILE}' or open a new terminal to use the 'gemini' command."
echo "Please run 'source ${CONFIG_FILE}' or open a new terminal to use the 'qwen' command."
else
echo "Aborted. No changes were made."
fi