mirror of
https://github.com/elitak/nixos-infect
synced 2024-11-10 05:54:20 +00:00
disable invalid shellcheck warnings
This commit is contained in:
parent
8f31ebc55d
commit
89c2c6b7f4
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue