Skip to content

Commit c43d0a1

Browse files
committed
Explicitly specify seq 1 $patch_lvl
1 parent 62f7865 commit c43d0a1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# For Linux, also builds musl for truly static linking if
2525
# musl is not installed.
2626

27-
set -e
27+
set -e
2828
set -o pipefail
2929

3030
# load version info
@@ -72,10 +72,10 @@ tar -xf bash-${bash_version}.tar.gz
7272

7373
echo "= patching bash"
7474
bash_patch_prefix=$(echo "bash${bash_version}" | sed -e 's/\.//g')
75-
for lvl in $(seq $bash_patch_level); do
75+
for lvl in $(seq 1 $bash_patch_level); do
7676
curl -LO http://ftp.gnu.org/gnu/bash/bash-${bash_version}-patches/"${bash_patch_prefix}"-"$(printf '%03d' "$lvl")"
7777
curl -LO http://ftp.gnu.org/gnu/bash/bash-${bash_version}-patches/"${bash_patch_prefix}"-"$(printf '%03d' "$lvl")".sig
78-
gpg --batch --verify "${bash_patch_prefix}"-"$(printf '%03d' "$lvl")".sig "${bash_patch_prefix}"-"$(printf '%03d' "$lvl")"
78+
gpg --batch --verify "${bash_patch_prefix}"-"$(printf '%03d' "$lvl")".sig "${bash_patch_prefix}"-"$(printf '%03d' "$lvl")"
7979

8080
pushd bash-${bash_version}
8181
patch -p0 < ../"${bash_patch_prefix}"-"$(printf '%03d' "$lvl")"

0 commit comments

Comments
 (0)