Hi I am new to bash scripts and I have the code bellow and it runs without any error or finish exit. I would like to add a line to stdout a message of failure or exit at the end, just for make sure it worked out or not.
Any of you guys would help me.
Thanks
PS- if possible help to get more generic to.

```
#!/usr/bin/env bash
fastq-dump --split-files SRR531199
head -n 2000000 SRR531199_1.fastq > SRR531199_1.500k.fastq
head -n 2000000 SRR531199_2.fastq > SRR531199_2.500k.fastq
for dataset in SRR497965 SRR497966 SRR497967 SRR497968 ERR1716491
do
 fastq-dump -M 1000 --table SEQUENCE $dataset
done

```

The code I got from this tutorial at app at end of the site:  

<http://evomics.org/learning/assembly-and-alignment/2018-assembly-kmer-lab/>