Skip to content

Commit 2e78f60

Browse files
committed
fix: Make noexpand_translation the default for Bash 5.2. Closes #104
Nobody means to use this and it's a security fix.
1 parent 5bb41a3 commit 2e78f60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/src/util/pkg.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ pkg.phase_local_integration_nonrecursive() {
231231
local content_all='# shellcheck shell=bash
232232
set -ETeo pipefail
233233
shopt -s shift_verbose
234+
if ((BASH_VERSINFO[0] >= 6 || (BASH_VERSINFO[0] == 5 && BASH_VERSINFO[1] >= 2))); then
235+
shopt -s noexpand_translation
236+
fi
234237
235238
if [ -z "$BASALT_PACKAGE_DIR" ]; then
236239
printf "%s\n" "Fatal: source_packages.sh: \$BASALT_PACKAGE_DIR is empty, but must exist"

0 commit comments

Comments
 (0)