diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 11:38:05 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 11:38:05 +0000 |
| commit | 5592a6c28bdf04165d60a9579f70f9c63fc830ca (patch) | |
| tree | dfa91f8879e2e14c1eeae07fa34b384be7ea5b41 /tools/boca-submit-run-root | |
| parent | 691ea427023510ade5eac9a4594d1abf40164053 (diff) | |
| download | boca-5592a6c28bdf04165d60a9579f70f9c63fc830ca.tar.gz boca-5592a6c28bdf04165d60a9579f70f9c63fc830ca.zip | |
bf
Diffstat (limited to 'tools/boca-submit-run-root')
| -rwxr-xr-x | tools/boca-submit-run-root | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/boca-submit-run-root b/tools/boca-submit-run-root index 3bba4aa..eb2528f 100755 --- a/tools/boca-submit-run-root +++ b/tools/boca-submit-run-root @@ -64,12 +64,13 @@ if [ "$7" != "" ]; then uniq=`sha256sum "$7" | cut -f1 -d' '` code=`cat /root/submissions/code 2>/dev/null` if [ "$code" == "" ]; then - echo "ERROR: this computer is not configured to submit runs" + echo "ERROR: this computer is not configured to submit runs -- code missing" exit 1 fi - comp="error" - if [ -r /root/submissions/comp ]; then - comp=`cat /root/submissions/comp` + comp=`cat /root/submissions/comp 2>/dev/null` + if [ "$comp" == "" ]; then + echo "ERROR: this computer is not configured to submit runs -- comp missing" + exit 1 fi res=`echo -n "${code}${uniq}${comp}${dateerr}" | sha256sum - | cut -f1 -d' '` echo "uniq=$uniq" >> "$nom" |