diff options
author | Anders Kaseorg <andersk@mit.edu> | 2021-11-01 23:26:26 -0700 |
---|---|---|
committer | Anders Kaseorg <andersk@mit.edu> | 2021-11-02 10:27:27 -0700 |
commit | 447350fe0ea29d8c45e1d7436d8a148f01bf7a42 (patch) | |
tree | e98c01c8bfe37cdda3d2cfe3c78552d6495012e7 /.github/stale.yml | |
parent | 647baaa15161bfaeaf46f473af8278c975f0200a (diff) |
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>
Diffstat (limited to '.github/stale.yml')
0 files changed, 0 insertions, 0 deletions