mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-11-23 11:04:26 +03:00
disable invalid shellcheck warnings
This commit is contained in:
parent
8f31ebc55d
commit
89c2c6b7f4
@ -163,6 +163,7 @@ prepareEnv() {
|
|||||||
|
|
||||||
# Nix installer tries to use sudo regardless of whether we're already uid 0
|
# Nix installer tries to use sudo regardless of whether we're already uid 0
|
||||||
#which sudo || { sudo() { eval "$@"; }; export -f sudo; }
|
#which sudo || { sudo() { eval "$@"; }; export -f sudo; }
|
||||||
|
# shellcheck disable=SC2174
|
||||||
mkdir -p -m 0755 /nix
|
mkdir -p -m 0755 /nix
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,6 +200,7 @@ infect() {
|
|||||||
|
|
||||||
curl https://nixos.org/nix/install | $SHELL
|
curl https://nixos.org/nix/install | $SHELL
|
||||||
|
|
||||||
|
# shellcheck disable=SC1090
|
||||||
source ~/.nix-profile/etc/profile.d/nix.sh
|
source ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
|
||||||
[[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-17.03"
|
[[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-17.03"
|
||||||
|
Loading…
Reference in New Issue
Block a user