I use a script to convert all VIDEO_TS directories to .ISO.How can I check if genisoimage is actually converting it instead of it failling and converting the next folder?After conversion I have a command to delete the folder but if genisoimage fails then it still deletes it.#!/bin/bashiso_name=parent_path=full_path=total=0IFS=$'\n'clearfor file in $(find /shares/media/ -type d -name 'VIDEO_TS')doparent_path=$(dirname -- $file)full_path=$fileiso_name=$(basename -- $parent_path).ISOiso_path=$(dirname -- $parent_path)/$iso_nameecho Converting to $iso_name((total++))genisoimage -allow-limited-size -o  $iso_path -dvd-video $parent_pathrm -rf $parent_path doneecho Succesfully converted $total videos to ISO!
check if genisoimage is succesful
shell;shell script