From 09238fae49c576d0bd0bb95b181329e40710d5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 13 Sep 2018 21:05:26 +0200 Subject: [PATCH] Check that hello is not available before importing it --- to-be-run-in-vm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/to-be-run-in-vm.sh b/to-be-run-in-vm.sh index a98ed7a..a938334 100644 --- a/to-be-run-in-vm.sh +++ b/to-be-run-in-vm.sh @@ -12,6 +12,10 @@ echo pwd head -c "$len_tar" /dev/sdd | tar -xf - +# Checking that hello is not available yet: +$(guix build hello)/bin/hello && echo "Expected hello to be missing at this point" && exit 1 + +# Import hello.nar guix archive --authorize < signing-key.pub guix archive --import < hello.nar -- 2.34.1