aboutsummaryrefslogtreecommitdiff
path: root/aux/containers
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-09-13 09:18:30 -0300
committerEuAndreh <eu@euandre.org>2021-09-13 13:13:48 -0300
commit7c9e89f554c07c72bb3b535a3b4156cee3cebaf7 (patch)
tree5a0f5681e1e32356cf20f1d330da4063daa998f9 /aux/containers
parentmv aux/guix/ aux/containers/ (diff)
downloadgit-permalink-7c9e89f554c07c72bb3b535a3b4156cee3cebaf7.tar.gz
git-permalink-7c9e89f554c07c72bb3b535a3b4156cee3cebaf7.tar.xz
aux/containers/guix/with-container.sh: Use $ENV_CMD for less duplication
Diffstat (limited to 'aux/containers')
-rwxr-xr-xaux/containers/guix/with-container.sh8
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