From 89c2c6b7f40f391d4bd45fce76ad6f48e6129dbf Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sat, 15 Apr 2017 17:57:55 +0100 Subject: [PATCH] disable invalid shellcheck warnings --- nixos-infect | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos-infect b/nixos-infect index 0be26dd..09244f2 100755 --- a/nixos-infect +++ b/nixos-infect @@ -163,6 +163,7 @@ prepareEnv() { # Nix installer tries to use sudo regardless of whether we're already uid 0 #which sudo || { sudo() { eval "$@"; }; export -f sudo; } + # shellcheck disable=SC2174 mkdir -p -m 0755 /nix } @@ -199,6 +200,7 @@ infect() { curl https://nixos.org/nix/install | $SHELL + # shellcheck disable=SC1090 source ~/.nix-profile/etc/profile.d/nix.sh [[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-17.03"