grep ^${backup_pool}/${remote_fs}@ |
grep -v ^${backup_pool}/${current_backup_marker} |
awk "{gsub(/^$backup_pool./,\"\",\$1); print\$1}" > $local_list
-if [ $? != 0 ]; then
+if [[ $? != 0 ]] && [[ $expect_empty_remote_list == 0 ]]; then
fatal_and_exit "-E- local $zfs list on $hostname command failed" $mailto
fi