From e165be27918dbe638267a98b0d1097b6f5591d7a Mon Sep 17 00:00:00 2001 From: Gunnar Morling Date: Wed, 10 Jan 2024 20:12:16 +0100 Subject: [PATCH] #1267 Verifying `tar` command is available --- app/views/includes/sanity.scala.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/views/includes/sanity.scala.txt b/app/views/includes/sanity.scala.txt index 96c1b60..48450f0 100644 --- a/app/views/includes/sanity.scala.txt +++ b/app/views/includes/sanity.scala.txt @@ -43,6 +43,18 @@ if ! command -v zip > /dev/null; then exit 1 fi +echo "Looking for tar..." +if ! command -v tar > /dev/null; then + echo "Not found." + echo "======================================================================================================" + echo " Please install tar on your system using your favourite package manager." + echo "" + echo " Restart after installing tar." + echo "======================================================================================================" + echo "" + exit 1 +fi + echo "Looking for curl..." if ! command -v curl > /dev/null; then echo "Not found." @@ -84,4 +96,4 @@ else echo "" exit 1 fi -fi \ No newline at end of file +fi