From 7ee203aa717bb2fa0f2f050e7beff17aca15fcaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Tue, 17 Nov 2020 11:19:50 +0100 Subject: [PATCH] enh: install-ttyrec.h: error msg for non-supported OSes --- bin/admin/install-ttyrec.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/admin/install-ttyrec.sh b/bin/admin/install-ttyrec.sh index 993bad9..3fa6233 100755 --- a/bin/admin/install-ttyrec.sh +++ b/bin/admin/install-ttyrec.sh @@ -196,6 +196,11 @@ if [ "$OS_FAMILY" != "Linux" ]; then exit 1 fi +if [ "$OS_FAMILY" != "Linux" ]; then + echo "Sorry, your OS ($(uname -s)) is not supported." >&2 + exit 1 +fi + while getopts :sdrah arg; do case "$arg" in s) action_static; exit 0;;