|
@@ -745,13 +745,14 @@ jat__submit() {
|
745
|
745
|
__jat__usage "no SRC?"
|
746
|
746
|
return 2
|
747
|
747
|
}
|
|
748
|
+ mkdir -p "$dest" || {
|
|
749
|
+ jat__log_error "cannot write to result storage: $dest"
|
|
750
|
+ return 3
|
|
751
|
+ }
|
748
|
752
|
test -n "$altname" && {
|
749
|
753
|
dest="$dest/$altname"
|
750
|
754
|
nhint=" as $altname"
|
751
|
|
- }
|
752
|
|
- mkdir -p "$(dirname "$dest")" || {
|
753
|
|
- jat__log_error "cannot write to result storage: $dest"
|
754
|
|
- return 3
|
|
755
|
+ mkdir -p "$(dirname "$dest")" # needed if altname has slashes
|
755
|
756
|
}
|
756
|
757
|
jat__log_info "submitting result: $path$nhint"
|
757
|
758
|
cp -ar "$path" "$dest"
|