ptp_helper_post_install.sh: deal with none

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/655>
This commit is contained in:
Tom Schoonjans 2020-09-08 12:45:42 +01:00 committed by Tim-Philipp Müller
parent ef4b61496d
commit 30151e6f40

View file

@ -20,6 +20,9 @@ case "$with_ptp_helper_permissions" in
echo "Calling $setcap cap_net_bind_service,cap_net_admin+ep $ptp_helper"
$setcap cap_net_bind_service,cap_net_admin+ep "$ptp_helper" || true
;;
none)
echo "No perms/caps to set for $ptp_helper"
;;
*)
echo "$0 ERROR: unexpected permissions value '$with_ptp_helper_permissions'";
exit 2;