From 7c9e89f554c07c72bb3b535a3b4156cee3cebaf7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 13 Sep 2021 09:18:30 -0300 Subject: aux/containers/guix/with-container.sh: Use $ENV_CMD for less duplication --- aux/containers/guix/with-container.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'aux/containers') 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 -- cgit v1.2.3