It would be nice when problems like not being able to find the zfs command are clearly reported.
When no PATH is set zxfer won't be able to find the zfs command but it does not report this problem. It just fails in get_zfs_list with the error "Source does not exist." which is misleading.
Maybe a good idea to test a couple of likely location like /sbin/zfs then just hoping "source zfs" will do the trick. On freebsd there is no default path for cron jobs so the script works from the commandline but fails as a cronjob.
It would be nice when problems like not being able to find the zfs command are clearly reported.
When no PATH is set zxfer won't be able to find the zfs command but it does not report this problem. It just fails in get_zfs_list with the error "Source does not exist." which is misleading.
Maybe a good idea to test a couple of likely location like /sbin/zfs then just hoping "source zfs" will do the trick. On freebsd there is no default path for cron jobs so the script works from the commandline but fails as a cronjob.