Edit by browser
This commit is contained in:
parent
8b36a8536d
commit
179034104d
14
step2/2.sh
14
step2/2.sh
|
@ -1,4 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#/bin/sbin
|
#/bin/sbin
|
||||||
cd /data/workspace/myshixun/step2/
|
cd /data/workspace/myshixun/step2/
|
||||||
sh ./wenti.sh
|
#sh ./wenti.sh
|
||||||
|
# 执行学生代码文件
|
||||||
|
|
||||||
|
result=$(grep -c -E "China|Mars" a.sh)
|
||||||
|
|
||||||
|
if [ $result -eq 0 ];then
|
||||||
|
echo `sh a.sh` >/tmp/a.txt
|
||||||
|
python3 b.py
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "请正确编写代码,不要手动echo 差集"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue