From 7284efa542f204f4138943eff146b6454b430cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sat, 25 Feb 2023 17:59:28 +0100 Subject: [PATCH] Add tar as a dependency --- msman.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/msman.sh b/msman.sh index f2e9788..e144735 100755 --- a/msman.sh +++ b/msman.sh @@ -48,6 +48,21 @@ function check_dependencies { echo "Error: screen is not installed" exit 1 fi + + # Check if tar is installed + if ! command -v tar &> /dev/null + then + echo "Error: tar is not installed" + exit 1 + fi + + # Check if gzip is installed + # TODO: Check if this is needed and/or works + # if ! command -v gzip &> /dev/null + # then + # echo "Error: gzip is not installed" + # exit 1 + # fi } # Ask if the user wants to continue anyway