diff options
| author | EuAndreh <eu@euandre.org> | 2022-03-25 18:35:13 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2022-03-25 18:35:13 -0300 |
| commit | f3f9937b82b45181a628357dda9c41a37648dddf (patch) | |
| tree | 97224a30274ef398c333113c9a1fa7d70966f55c | |
| parent | configuration.nix: Rename "libqrencode" package to "qrencode" (diff) | |
| download | dotfiles-f3f9937b82b45181a628357dda9c41a37648dddf.tar.gz dotfiles-f3f9937b82b45181a628357dda9c41a37648dddf.tar.xz | |
configuration.nix: Include configuration when running "with-email.sh"
| -rw-r--r-- | configuration.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configuration.nix b/configuration.nix index 2438a164..e67415d8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -317,6 +317,7 @@ in { "with-email.sh".text = '' #!/bin/sh set -u + . ~/.bashrc while getopts 's:' flag; do case "$flag" in @@ -336,7 +337,7 @@ in { OUT="$(echo 'mkstemp(template)' | m4 -D template="${"\${TMPDIR:-/tmp}"}/m4-tmpname.")" printf 'Running command: %s\nStarting at: %s\n\n' "$*" "$(now)" >> "$OUT" - ("$@" 2>&1) >> "$OUT" + (sh -c "$@" 2>&1) >> "$OUT" STATUS="$?" printf '\nFinished at: %s\n' "$(now)" >> "$OUT" |
