#!/bin/bash
salt=`python test.py`
salt1=`python test1.py`
if [ "$1" = "jumper" ]
then
./dosome.sh $salt
elif [ "$1" = "jumper1" ]
then
./dosome1.sh $salt1
else
./login"$1".sh $salt
fi
总之就是出现了if 后面总会跟个then, 不管是if还是elif,之前忽略了这个问题,再次记录下~
#!/bin/bash
salt=`python test.py`
salt1=`python test1.py`
if [ "$1" = "jumper" ]
then
./dosome.sh $salt
elif [ "$1" = "jumper1" ]
then
./dosome1.sh $salt1
else
./login"$1".sh $salt
fi
总之就是出现了if 后面总会跟个then, 不管是if还是elif,之前忽略了这个问题,再次记录下~
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M