From c510adbc94c50f4e0c30178920a395ee6aa74bef Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Mon, 25 Jan 2016 15:22:53 +0000 Subject: [PATCH] $a is a literal sed command, avoid shell var expansion. --- debian/dump1090-mutability.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/dump1090-mutability.postinst b/debian/dump1090-mutability.postinst index 6a3ebd0..b548d42 100644 --- a/debian/dump1090-mutability.postinst +++ b/debian/dump1090-mutability.postinst @@ -31,7 +31,7 @@ subvar_raw() { if ! grep -Eq "^ *$2=" $SRCCONFIGFILE; then # if not present in the config file, add it at the end - echo "$a $2=$1" >> $SEDSCRIPT + echo "\$a $2=$1" >> $SEDSCRIPT else # otherwise, replace the current value echo "s@^ *$2=.*@$2=\"$1\"@" >>$SEDSCRIPT