]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: wait on process substitutions
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 3 Aug 2020 08:18:40 +0000 (10:18 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 6 Aug 2020 15:47:14 +0000 (17:47 +0200)
commit26683f6c9ad18d9914b23312c221f27fd5ecab51
tree227e8e54141c29a967c61f2a01a4d464d8b2a17a
parent13fac76a71f25631d7415ba457bdab267d0950d4
wg-quick: wait on process substitutions

Bash does not propagate error values, which is a bummer, but process
substitutions are a useful feature. Introduce a new idiom to deal with
this: either "; wait $!" after the line to propagate the error, or "||
true" to indicate explicitly that we don't care about the error.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/darwin.bash
src/wg-quick/freebsd.bash
src/wg-quick/linux.bash
src/wg-quick/openbsd.bash