File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ if [ -z "$NIX_INSTALLER_NO_MODIFY_PROFILE" ]; then
215215 if [ -w " $fn " ]; then
216216 if ! grep -q " $p " " $fn " ; then
217217 echo " modifying $fn ..." >&2
218- echo -e " \nif [ -e $p ]; then . $p ; fi # added by Nix installer" >> " $fn "
218+ printf ' \nif [ -e %s ]; then . %s ; fi # added by Nix installer\n ' " $p " " $p " >> " $fn "
219219 fi
220220 added=1
221221 break
@@ -226,7 +226,7 @@ if [ -z "$NIX_INSTALLER_NO_MODIFY_PROFILE" ]; then
226226 if [ -w " $fn " ]; then
227227 if ! grep -q " $p " " $fn " ; then
228228 echo " modifying $fn ..." >&2
229- echo -e " \nif [ -e $p ]; then . $p ; fi # added by Nix installer" >> " $fn "
229+ printf ' \nif [ -e %s ]; then . %s ; fi # added by Nix installer\n ' " $p " " $p " >> " $fn "
230230 fi
231231 added=1
232232 break
You can’t perform that action at this time.
0 commit comments