From 569fd3bd5c3e9e1b5f9d1564e030782bb1120636 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 4 Oct 2010 11:03:57 +0000 Subject: [PATCH] tweak to prepend_var --- tools/scripts/vips-7.23 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/scripts/vips-7.23 b/tools/scripts/vips-7.23 index 9a848d93..4a25c67e 100755 --- a/tools/scripts/vips-7.23 +++ b/tools/scripts/vips-7.23 @@ -24,11 +24,10 @@ fi # can cause security problems function prepend_var () { # we have to use eval to do double indirection, I think - eval value=x"\$$1" - if [ $value = x ]; then + eval value="\$$1" + if [ "x$value" = x ]; then export $1=$2 else - eval value="\$$1" export $1=$2:$value fi }