diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index 477eb1fd6..450a773e9 100644 --- a/scripts/install-multi-user.sh +++ b/scripts/install-multi-user.sh @@ -915,9 +915,11 @@ configure_shell_profile() { fi if [ -e "$profile_target" ]; then - shell_source_lines \ - | _sudo "extend your $profile_target with nix-daemon settings" \ - tee -a "$profile_target" + { + shell_source_lines + cat "$profile_target" + } | _sudo "extend your $profile_target with nix-daemon settings" \ + tee "$profile_target" fi done