summaryrefslogtreecommitdiff
path: root/with-env
diff options
context:
space:
mode:
authorJonas Kohl2024-12-26 20:12:34 +0100
committerJonas Kohl2024-12-26 20:12:34 +0100
commit686fff945e0b4697aa74da404ce90534bb7b121d (patch)
treecb5582c8d118cb480f2978fa821950f4a2259401 /with-env
parent11fed2c8ce3dd38fe686e7b27db738f64373fe3d (diff)
Add async email and topic subscribingv0.7.2
Diffstat (limited to 'with-env')
-rw-r--r--with-env5
1 files changed, 5 insertions, 0 deletions
diff --git a/with-env b/with-env
new file mode 100644
index 0000000..aabba50
--- /dev/null
+++ b/with-env
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+. <(xargs -0 bash -c 'printf "export %q\n" "$@"' -- < /proc/1/environ)
+$@