Skip to content

Commit

Permalink
net-vpn/vtun: Fix bashism in shell script
Browse files Browse the repository at this point in the history
Fix shell script compatibility issue in rc script (bashism).

Closes: https://bugs.gentoo.org/849446
Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
Closes: #28682
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
leakingmemory authored and thesamesam committed Dec 16, 2022
1 parent dd2fcdf commit c89929c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net-vpn/vtun/files/vtun.rc
Expand Up @@ -7,7 +7,8 @@ depend() {
}

start() {
IFS=$'\n'
IFS=$(printf '\n.'); # Set separator (IFS) to <newline><dot>
IFS=${IFS%.}; # Remove <dot> - The <dot> was because shells remove trailing newlines with $(..)
for line in `grep -v '^[[:space:]]*#' /etc/vtund-start.conf | grep -v '^[[:space:]]*$'`
do
echo $line |
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c89929c

Please sign in to comment.