Skip to content

Commit e03e638

Browse files
authored
fix(scripts): portable bash shebang and prevented array expansions (#1753)
- Replaced `#!/bin/bash` to `#!/usr/bin/env bash` to improve portability on different operating systems. - Wrapped $@ with quotes to prevent array expansions.
1 parent bf3c820 commit e03e638

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
2-
PROJECT_VERSION=$(git describe --tags) cargo build -r $@
1+
#!/usr/bin/env bash
2+
PROJECT_VERSION=$(git describe --tags) cargo build -r "$@"

scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
2-
PROJECT_VERSION=$(git describe --tags) cargo build -r $@
1+
#!/usr/bin/env bash
2+
PROJECT_VERSION=$(git describe --tags) cargo build -r "$@"

0 commit comments

Comments
 (0)