[hamradio-commits] [dump1090-mutability] 116/172: $a is a literal sed command, avoid shell var expansion.

Matteo F. Vescovi mfv at moszumanska.debian.org
Sun Jan 28 13:45:51 UTC 2018


This is an automated email from the git hooks/post-receive script.

mfv pushed a commit to branch master
in repository dump1090-mutability.

commit 9cccdb782ed1b19547f32d4ab275d6b6ce52f866
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Mon Jan 25 15:22:53 2016 +0000

    $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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090-mutability.git



More information about the pkg-hamradio-commits mailing list