[Xen-devel] [OSSTEST PATCH 3/6] mg-repro-setup: Fix runvar adjustment shell syntax

Ian Jackson posted 6 patches 6 years, 9 months ago
[Xen-devel] [OSSTEST PATCH 3/6] mg-repro-setup: Fix runvar adjustment shell syntax
Posted by Ian Jackson 6 years, 9 months ago
-r would fail with a bash syntax error.  This bug has existed ever
since this feature was introduced.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 mg-repro-setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mg-repro-setup b/mg-repro-setup
index 37ccb59d..6ed4d85e 100755
--- a/mg-repro-setup
+++ b/mg-repro-setup
@@ -108,7 +108,7 @@ adjrunvar () {
 for arg in "${adjustsets[@]}"; do
 	case "$arg" in
 	!*|^*)	delrunvar "${arg#?}"		;;
-	*=*)	adjrunvar "${arg%%=*}" "{$arg#*=}"	;;
+	*=*)	adjrunvar "${arg%%=*}" "${arg#*=}"	;;
 	*)	bad-adjuistset-pattern			;;
 	esac
 done
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel