Skip to content

chore(scripts): use dirname for script dir resolution#3408

Merged
mkoura merged 1 commit intomasterfrom
use_dirname
Apr 13, 2026
Merged

chore(scripts): use dirname for script dir resolution#3408
mkoura merged 1 commit intomasterfrom
use_dirname

Conversation

@mkoura
Copy link
Copy Markdown
Collaborator

@mkoura mkoura commented Apr 13, 2026

Replace ${0%/*} / ${BASH_SOURCE[0]%/*} with dirname in all
shell scripts. When $0 contains no /, ${0%/*} returns the full
string while dirname correctly returns .. No other behavioral
changes.

@mkoura mkoura requested a review from saratomaz as a code owner April 13, 2026 11:47
Replace `${0%/*}` / `${BASH_SOURCE[0]%/*}` with `dirname` in all
shell scripts. When `$0` contains no `/`, `${0%/*}` returns the full
string while `dirname` correctly returns `.`. No other behavioral
changes.
@mkoura mkoura changed the title feat(scripts): improve directory resolution for portability chore(scripts): use dirname for script dir resolution Apr 13, 2026
@mkoura mkoura merged commit c962da2 into master Apr 13, 2026
1 check passed
@mkoura mkoura deleted the use_dirname branch April 13, 2026 11:53
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.

1 participant