summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-01-28 15:08:50 +0100
committerlassulus <lassulus@lassul.us>2018-01-28 15:08:50 +0100
commit0cad7868a46613eb76fe1a8271efe2a9230e85ad (patch)
treebc858c6d4996fec97a58c36839bc8648a23dbedd /krebs
parent044f54b36fa66a72709565ec4a5edcd412ba0198 (diff)
infest prepare: define _which on nixos_iso
Diffstat (limited to 'krebs')
-rw-r--r--krebs/4lib/infest/prepare.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/krebs/4lib/infest/prepare.sh b/krebs/4lib/infest/prepare.sh
index 78c1c6ec1..cbc62102c 100644
--- a/krebs/4lib/infest/prepare.sh
+++ b/krebs/4lib/infest/prepare.sh
@@ -81,6 +81,9 @@ prepare_debian() {
}
prepare_nixos_iso() {
+ _which() (
+ type -p "$1"
+ )
mountpoint /mnt
type git 2>/dev/null || nix-env -iA nixos.git