}
EOF
+cat <<EOF > $tmp/updatepo
+#!/bin/sh
+touch $cwd/build/po/*.po
+EOF
+
+chmod +x $tmp/updatepo
+
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@output /dev/null
messages
resume incomplete jobid=1
wait
messages
-@exec "sh -c 'touch $cwd/build/po/*.po'"
+@exec "$tmp/updatepo"
setdebug level=0 trace=0 hangup=5 client
run job=$JobName level=Incremental yes pool=PoolA
wait
check_for_zombie_jobs storage=File
stop_bacula
-while IFS= read -r line <&3; do
+while IFS= read line ; do
grep "Veryfying: ${line}" tmp/log1.out > /dev/null
if [ $? -ne 0 ]; then
estat=1
print_debug "Did not found ${line} file in verified files log!"
print_debug "see: ${cwd}/tmp/original"
fi
-done 3< ${files_listing}
+done < ${files_listing}
grep "^ Termination: *Verify OK" tmp/log1.out 2>&1 >/dev/null
grep "^ Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
rstat=$?
-while IFS= read -r line <&3; do
+while IFS= read line ; do
grep "Veryfying: ${line}" tmp/log2.out > /dev/null
if [ $? -eq 0 ]; then
estat=1
print_debug "Found ${line} file in verified files log, no files should be listed now!"
print_debug "see: ${cwd}/tmp/log3.out"
fi
-done 3< ${files_listing}
+done < ${files_listing}
end_test