How can I make bash wait for a process to finish before continuing on with a script? [closed]

﹥>﹥吖頭↗ 提交于 2019-12-02 08:00:47

You don't have to do anything else than :

sed -e 's/:[^:\/\/]/="/g;s/$/"/g;s/ *=/=/g' in.yaml > /path/to/out.sh
source /path/to/out.sh

the shell by default run commands one by ones, so it will run source when sed will finish.

For your error, you should put the full path of out.sh in your source command.

The source commands looks for the sourced file on your PATH when its name contains no slashes (but it only has to be readable; it does not have to be executable). You probably don't have the current directory on your PATH.

Try:

source ./out.sh
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!