ptp_helper_post_install.sh: deal with none

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/620>
This commit is contained in:
Tom Schoonjans 2020-09-08 12:45:42 +01:00 committed by GStreamer Merge Bot
parent 1aa16e0b2b
commit 40c994cdde

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" 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 $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'"; echo "$0 ERROR: unexpected permissions value '$with_ptp_helper_permissions'";
exit 2; exit 2;