From cc3aa973b6bc448bd52d1f6bfb9e9613c4dfbfdd Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Fri, 4 Aug 2017 11:44:16 +0100 Subject: further checks --- tools/boca-submit-run-root | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') 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` -- cgit v1.2.3