检查一下env.sh文件中定义的变量路径正不正确
设置变量,在my_pan-gene-family目录下运行if [ -f "/work/my_pan-gene-family/shell/env.sh" ]; then
source /work/my_pan-gene-family/shell/env.sh
else
echo "env.sh file not in current directory, please check"
fi后,显示‘env.sh’文件存在于‘root@a47f61b77d54 16:14:16 /wrok/my_pan-gene-family’路径下。而检查变量时,运行‘ll $workdir’和‘ll $scriptsdir’显示变量不存在,运行‘echo $ref’成功,从昨天晚上开始试了很多遍都是这样,请问老师怎么解决?辛苦您了,谢谢。
