Skip to content

Commit 550f524

Browse files
Little-Peonyclaude
andcommitted
fix(scripts): anchor ver.sh working directory to script location
Add `cd "$(dirname "$0")"` so both invocation paths work correctly: - Direct: `./ver.sh` from repo root - Via Gradle: `./gradlew version` (runs from framework/ directory) Without this, the Gradle invocation resolves versionPath to framework/framework/src/... which does not exist. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e7cd7d7 commit 550f524

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ver.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
cd "$(dirname "$0")"
23
currentBranch=$(git rev-parse --abbrev-ref HEAD)
34

45
if [ "$currentBranch"x != "master"x ]

0 commit comments

Comments
 (0)