From patchwork Mon Feb 18 21:28:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2087 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id E726F88B5C8 for ; Mon, 18 Feb 2019 10:28:23 +0000 (GMT) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 4430Sk6xLQz5JPVL; Mon, 18 Feb 2019 10:28:22 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1550485703; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:list-id: list-unsubscribe:list-subscribe:list-post; bh=RX9BPqPKGGT8kw/MBt7k3xmKZisAMeGG19DZU6z/6PQ=; b=i783cWSrjQVI/U8zBvgmIucMBU1ZDHmydFtQnI5V2hJFJYdDskBsT16ncBt/Cj4SLbJ2ur uK9y/eMp0x6yLTQy0IF5wQEcKCQXqWRKsZa/96v815N397eyaNXMrXMDQRgCt7NqRI3bJP ZVZ6FkZm+N97tdu19FsmsrwFsMKIjZS+IWdNa8e5FyV4LIOuHUmWXLUfGChrlR576oPR9Q E93CcbaXWQKhLAvsO1ki0riSgiGbtVL6BpouANyBLh4D0IN66ZYJdIblfEOIrDkM/yCerN 5DM/fIu7bYEIUXuyMXrFJEWawUGwKNIhIorxJvHf+zFTtNGLUWMbxZVOYLcTPQ== Received: from ipfire.tremer.co.uk (unknown [88.215.19.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4430Sh6NHhz5DSLV; Mon, 18 Feb 2019 10:28:20 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1550485701; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=RX9BPqPKGGT8kw/MBt7k3xmKZisAMeGG19DZU6z/6PQ=; b=daZNf6wRmzUAbvcZ+kMVrF94iIT334V0bNWhjVMV0tD8wCniSEPtY3j92m6XlbCYgZI1Jk b1iTWJSwQUBzyo/t9ueOL2Ue+oypwiYXJAfxIVkZ+Mii6947sovepYj0KHrU5FucR47WY2 tm423+nkp3fLvinS8jfJ78NdxJmf2C1Td4hPxZ+g47v73Fre8wN6p56tSvV3w5fvMeIzS6 vumccn+VVFrkV7lQ3NTPEBX7YXV58XNL+e3BfKifGVIsHcrjVrA0GXOFzjPGSyvJGkhOhV 4pFIM5GQ+BGu0E70gnLxZZfbJhZH1X/QSf7QetwLtEsHZML6KH9K2XWlt78OqQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] general-functions.pl: Only skip lines with a # at the beginning Date: Mon, 18 Feb 2019 10:28:13 +0000 Message-Id: <20190218102813.29248-1-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.12.2 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=ms smtp.mailfrom=michael.tremer@ipfire.org X-Spamd-Result: default: False [-3.75 / 11.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-1.65)[-0.550,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31655, ipnet:88.215.0.0/18, country:GB]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Status: No, score=-3.75 X-Rspamd-Server: mail01.i.ipfire.org Cc: Michael Tremer X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" This accidientially dropped all lines that include #. That resulted in colour codes not being loaded from file any more. Signed-off-by: Michael Tremer --- config/cfgroot/general-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl index 2d3eb73d7..04e36969c 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -151,7 +151,7 @@ sub readhash chop; # Skip comments. - next if ($_ =~ /\#/); + next if ($_ =~ /^#/); ($var, $val) = split /=/, $_, 2; if ($var)