]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Dh_Lib.pm
Revert avoid expanding shell metacharacters in sed call in autoscript(). It breaks...
[debhelper.git] / Debian / Debhelper / Dh_Lib.pm
index 7073aa4ec92c29cea395a439a2af3c55d04a3201..e0a274a4dd78192fb7893a249a85930cf094a2cf 100644 (file)
@@ -533,14 +533,14 @@ sub autoscript {
           && !compat(5)) {
                # Add fragments to top so they run in reverse order when removing.
                complex_doit("echo \"# Automatically added by ".basename($0)."\"> $outfile.new");
-               complex_doit("sed '$sed' $infile >> $outfile.new");
+               complex_doit("sed \"$sed\" $infile >> $outfile.new");
                complex_doit("echo '# End automatically added section' >> $outfile.new");
                complex_doit("cat $outfile >> $outfile.new");
                complex_doit("mv $outfile.new $outfile");
        }
        else {
                complex_doit("echo \"# Automatically added by ".basename($0)."\">> $outfile");
-               complex_doit("sed '$sed' $infile >> $outfile");
+               complex_doit("sed \"$sed\" $infile >> $outfile");
                complex_doit("echo '# End automatically added section' >> $outfile");
        }
 }