Skip to contentSkip to conversation

Appease older versions of bash

PATCH New Jim Mattson 1 participant 1 message Aug 24, 2017 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Appease older versions of bash

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="".)

---
 scripts/arch-run.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/arch-run.bash +2 -2
index 28a9efa..1e41eb7 100644
@@ -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]*}
 
Signature · 1 line
2.14.1.342.g6490525c54-goog