Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 NixOS#5458. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
- Loading branch information