diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 10:44:16 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 10:44:16 +0000 |
| commit | cc3aa973b6bc448bd52d1f6bfb9e9613c4dfbfdd (patch) | |
| tree | 026968190401f51649320a9c3b4388ee336a165e /tools/boca-submit-run-root | |
| parent | cb1fdb34041d04490a30712464c5e2e05ac78429 (diff) | |
| download | boca-cc3aa973b6bc448bd52d1f6bfb9e9613c4dfbfdd.tar.gz boca-cc3aa973b6bc448bd52d1f6bfb9e9613c4dfbfdd.zip | |
further checks
Diffstat (limited to 'tools/boca-submit-run-root')
| -rwxr-xr-x | tools/boca-submit-run-root | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/boca-submit-run-root b/tools/boca-submit-run-root index 0ae0b39..3bba4aa 100755 --- a/tools/boca-submit-run-root +++ b/tools/boca-submit-run-root @@ -62,7 +62,11 @@ if [ "$7" != "" ]; then # uniq=`date +%sN`-`sha256sum "$7"` # uniq=`echo $uniq | sha256sum - | cut -f1 -d' '` uniq=`sha256sum "$7" | cut -f1 -d' '` - code=`cat /root/submissions/code` + code=`cat /root/submissions/code 2>/dev/null` + if [ "$code" == "" ]; then + echo "ERROR: this computer is not configured to submit runs" + exit 1 + fi comp="error" if [ -r /root/submissions/comp ]; then comp=`cat /root/submissions/comp` |