Message ID | 20170824183617.180441-1-jmattson@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash index 28a9efa..1e41eb7 100644 --- a/scripts/arch-run.bash +++ b/scripts/arch-run.bash @@ -247,8 +247,8 @@ env_generate_errata () errata="ERRATA_$commit" test -v $errata && continue - IFS=. read -r v p rest <<<$minver - IFS=- read -r s x <<<$rest + IFS=. read -r v p rest <<<"$minver" + IFS=- read -r s x <<<"$rest" s=${s%%[!0-9]*} x=${x%%[!0-9]*}
Older versions of bash need the extra quotes. Otherwise, the entire version gets assigned to 'v,' after replacing spaces with periods. (e.g. v="4 9"; p="".) Signed-off-by: Jim Mattson <jmattson@google.com> --- scripts/arch-run.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)