diff options
| -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" |
