Referencing a variable from another file in bash script prints out unnecessary errors

前端 未结 0 1623
有刺的猬
有刺的猬 2021-01-13 05:26
if [ "${db_path}" == "" ]; then
        db_path=$(source /etc/mongod.conf; echo $dbpath)
        echo "DBpath is: ${db_path}"
else


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题