From c89929c39b281565db5dd4fd51c7c1509db976d6 Mon Sep 17 00:00:00 2001 From: Jan-Espen Oversand Date: Fri, 16 Dec 2022 21:16:44 +0100 Subject: [PATCH] net-vpn/vtun: Fix bashism in shell script Fix shell script compatibility issue in rc script (bashism). Closes: https://bugs.gentoo.org/849446 Signed-off-by: Jan-Espen Oversand Closes: https://github.com/gentoo/gentoo/pull/28682 Signed-off-by: Sam James --- net-vpn/vtun/files/vtun.rc | 3 ++- net-vpn/vtun/{vtun-3.0.3-r3.ebuild => vtun-3.0.3-r4.ebuild} | 0 net-vpn/vtun/{vtun-3.0.4-r1.ebuild => vtun-3.0.4-r2.ebuild} | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename net-vpn/vtun/{vtun-3.0.3-r3.ebuild => vtun-3.0.3-r4.ebuild} (100%) rename net-vpn/vtun/{vtun-3.0.4-r1.ebuild => vtun-3.0.4-r2.ebuild} (100%) diff --git a/net-vpn/vtun/files/vtun.rc b/net-vpn/vtun/files/vtun.rc index 7ef3229850432..9d081eeb4f069 100644 --- a/net-vpn/vtun/files/vtun.rc +++ b/net-vpn/vtun/files/vtun.rc @@ -7,7 +7,8 @@ depend() { } start() { - IFS=$'\n' + IFS=$(printf '\n.'); # Set separator (IFS) to + IFS=${IFS%.}; # Remove - The was because shells remove trailing newlines with $(..) for line in `grep -v '^[[:space:]]*#' /etc/vtund-start.conf | grep -v '^[[:space:]]*$'` do echo $line | diff --git a/net-vpn/vtun/vtun-3.0.3-r3.ebuild b/net-vpn/vtun/vtun-3.0.3-r4.ebuild similarity index 100% rename from net-vpn/vtun/vtun-3.0.3-r3.ebuild rename to net-vpn/vtun/vtun-3.0.3-r4.ebuild diff --git a/net-vpn/vtun/vtun-3.0.4-r1.ebuild b/net-vpn/vtun/vtun-3.0.4-r2.ebuild similarity index 100% rename from net-vpn/vtun/vtun-3.0.4-r1.ebuild rename to net-vpn/vtun/vtun-3.0.4-r2.ebuild