Skip to content

scripts: keep a keystore password's surrounding spaces at the prompt - #1105

Merged
cryptskii merged 1 commit into
mainfrom
cryptskii/eager-darwin-1668e4
Oct 2, 2026
Merged

cryptskii merged 1 commit into
mainfrom
cryptskii/eager-darwin-1668e4

Conversation

@cryptskii

Copy link
Copy Markdown
Collaborator

By default, read strips leading and trailing whitespace. A keystore password that starts or ends with a space therefore reached keytool and Gradle without that space. The keystore then refused a password that keytool -list accepts when keytool prompts for it itself.

The prompt in scripts/fast_deploy_android_release.sh now reads with IFS=, so the password is used exactly as typed.

Tested on a real TTY (via script) against a PKCS12 keystore whose password is spaced pass: the check opens the keystore and the build proceeds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y4wDTToHmJfkYYJvMKXt3u


Generated by Claude Code

`read` strips leading and trailing whitespace by default, so a keystore
password that begins or ends with a space reached keytool and Gradle
without it, and the keystore refused a password keytool itself accepts
when it prompts. The prompt reads with IFS= so the password is taken as
typed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y4wDTToHmJfkYYJvMKXt3u
@cryptskii
cryptskii merged commit 104f773 into main Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants