Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff sbin/ftjail @ 652:39a7594b45f9
ftjail: check that a given argument is readable
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 28 Sep 2024 12:11:04 +0200 |
| parents | 5a367d44b480 |
| children | e878b3a5b0c5 |
line wrap: on
line diff
--- a/sbin/ftjail Fri Sep 27 22:45:45 2024 +0200 +++ b/sbin/ftjail Sat Sep 28 12:11:04 2024 +0200 @@ -905,7 +905,7 @@ [ -z "${_new_origin}" ] && { echo "ERROR: no new origin given" 1>&2; return 2; } zfs list -H -o name -t snapshot "${_new_origin}" >/dev/null || { echo "ERROR: new origin does not exist" 1>&2; return 1; } if [ -n "${_etcupdate_tarball}" ]; then - [ -f "${_etcupdate_tarball}" ] || { echo "ERROR: given etcupdate tarball does not exist " 1>&2; return 1; } + [ -r "${_etcupdate_tarball}" ] || { echo "ERROR: given etcupdate tarball does not exist and/or is not readable" 1>&2; return 1; } fi _dir_basename="$(basename "${_directory}")"
