mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Merge pull request #11346 from mjgallag/nix-profile-daemon-set-u
nix-daemon.sh profile script: operate under `set -u` in bash
This commit is contained in:
commit
3b6e24f66c
2 changed files with 7 additions and 1 deletions
|
@ -217,10 +217,16 @@ let
|
|||
$ssh <<EOF
|
||||
set -ex
|
||||
|
||||
# enable nounset while loading the profile
|
||||
# this may or may not work on all distros, depending on the quality of their scripts
|
||||
set -u
|
||||
|
||||
# FIXME: get rid of this; ideally ssh should just work.
|
||||
source ~/.bash_profile || true
|
||||
source ~/.bash_login || true
|
||||
source ~/.profile || true
|
||||
set +u
|
||||
|
||||
source /etc/bashrc || true
|
||||
|
||||
nix-env --version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue