FIX: Compatibility with macOS/FreeBSD (#82)

Removed use of `sed` due to its behavior differing between GNU Coreutils and FreeBSD.
This commit is contained in:
Rob Speed 2017-12-15 09:58:39 -05:00 committed by Daniel Hahler
parent f542734c08
commit 84bb32a403
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ Move sub/.autoenv.zsh away, now the root .autoenv.zsh file should get sourced.
Prepend call to autoenv_source_parent to sub/.autoenv.zsh file.
$ cd ..
$ sed -i -e "1s/^/echo autoenv_source_parent_from_sub:\nautoenv_source_parent\n/" .autoenv.zsh
$ echo -e "echo autoenv_source_parent_from_sub:\nautoenv_source_parent\n$(cat .autoenv.zsh)" >| .autoenv.zsh
$ echo "echo done_sub" >> .autoenv.zsh
$ touch -t 201401010103 .autoenv.zsh
$ test_autoenv_auth_env_files