lix-releng-staging/scripts
Anders Kaseorg 447350fe0e installer: Do not use echo -e in #!/bin/sh script
ShellCheck correctly warns:

In scripts/install-nix-from-closure.sh line 218:
                echo -e "\nif [ -e $p ]; then . $p; fi # added by Nix installer" >> "$fn"
                     ^-- SC3037: In POSIX sh, echo flags are undefined.

In scripts/install-nix-from-closure.sh line 229:
                echo -e "\nif [ -e $p ]; then . $p; fi # added by Nix installer" >> "$fn"
                     ^-- SC3037: In POSIX sh, echo flags are undefined.

Indeed, this actually breaks on Ubuntu where /bin/sh is dash.

Fixes #5458.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-11-02 10:27:27 -07:00
..
bigsur-nixbld-user-migration.sh fix nixbld user name/uid for macOS 2021-03-11 10:16:34 -06:00
create-darwin-volume.sh install: fix addVolume perm issue for some users 2021-09-01 19:02:25 -05:00
install-darwin-multi-user.sh darwin-install: fix incorrect fn name 2021-10-12 18:17:27 -05:00
install-multi-user.sh Revert "Use /etc/zshenv instead of /etc/zshrc for profile" 2021-08-25 23:02:22 -05:00
install-nix-from-closure.sh installer: Do not use echo -e in #!/bin/sh script 2021-11-02 10:27:27 -07:00
install-systemd-multi-user.sh darwin: encrypt nix volume if filevault is enabled 2021-04-29 13:26:51 -05:00
install.in Remove curl deps in install script 2021-08-09 15:33:39 +02:00
local.mk Pull nix-profile-daemon from 1.11 2017-10-16 14:51:39 -04:00
nix-http-export.cgi.in Replace wrong (w.r.t. PATH) sed call with in-shell substitution 2009-02-19 20:46:45 +00:00
nix-profile-daemon.sh.in Fix iterating over $NIX_PROFILES in Zsh 2020-10-21 00:03:38 +04:00
nix-profile.sh.in Provide a default value for NIX_PATH 2019-11-22 22:08:51 +01:00
nix-reduce-build.in Add support for ‘make installcheck’ 2013-11-25 18:47:03 +01:00
prepare-installer-for-github-actions Generate installer script for each PR/push 2021-02-21 15:51:49 +00:00