diff options
-rwxr-xr-x | aux/containers/guix/with-container.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/aux/containers/guix/with-container.sh b/aux/containers/guix/with-container.sh index 1b7c004..045e757 100755 --- a/aux/containers/guix/with-container.sh +++ b/aux/containers/guix/with-container.sh @@ -1,11 +1,9 @@ #!/bin/sh set -eu +ENV_CMD='guix time-machine --fallback -C aux/containers/guix/pinned-channels.scm -- environment --fallback -m aux/containers/guix/manifest.scm' if [ -z "${1:-}" ]; then - guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ - environment --fallback -m aux/guix/manifest.scm + $ENV_CMD else - guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ - environment --fallback -m aux/guix/manifest.scm --pure -C \ - -- sh -c "$@" + $ENV_CMD --pure -C -- sh -c "$@" fi |