Skip to content

Commit 4bfe911

Browse files
committed
Add error message to rsync.sh if read_files.sh fails
1 parent 3bb0036 commit 4bfe911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/rsync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ set +e
3636
[ -e "$subfolder/print_openqa.sh" ] || { >&2 echo "No file found: {$subfolder/print_openqa.sh}"; exit 1; }
3737

3838
# nowhere to log yet as we haven't created $logfolder
39-
bash -e "$subfolder/read_files.sh"
39+
bash -e "$subfolder/read_files.sh" || { >&2 echo "read_files.sh failed for $subfolder in enviroment $environ"; exit 1; }
4040

4141
if [ -e $subfolder/.run_last ] && [ -z "$(diff --brief $subfolder $subfolder/.run_last | grep '.lst')" ]; then
4242
>&2 echo "No changes found since last run, skipping {$subfolder}"

0 commit comments

Comments
 (0)