From: Pieter Lexis Date: Fri, 23 Oct 2015 10:50:13 +0000 (+0200) Subject: Perl correctly for the recursor configure script X-Git-Tag: dnsdist-1.0.0-alpha1~252^2~3^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a3dbab04cadeb958d609967aaca80ab1f667038;p=pdns Perl correctly for the recursor configure script --- diff --git a/pdns/configure-recursor b/pdns/configure-recursor index a2dc30723..9bba2b2ec 100755 --- a/pdns/configure-recursor +++ b/pdns/configure-recursor @@ -35,7 +35,7 @@ case $(uname) in BUILD_HOST="${BUILD_USER}@$(hostname -f || echo 'localhost')" ;; esac -perl -p -i -e '/#define BUILD_HOST/d' config.h +perl -p -n -i -e 'print unless /#define BUILD_HOST/' config.h cat >> config.h << EOF #define BUILD_HOST "${BUILD_HOST}" EOF