Check added for zip command 32/12432/1
authoraravind.est <aravindhan.a@est.tech>
Thu, 11 Jan 2024 12:49:50 +0000 (12:49 +0000)
committeraravind.est <aravindhan.a@est.tech>
Thu, 11 Jan 2024 12:54:34 +0000 (12:54 +0000)
Shows a message when the zip utility is not found.

Issue-ID: NONRTRIC-964
Change-Id: I7eaac63c12dd70dd5b90b8733e90417ca687b41e
Signed-off-by: aravind.est <aravindhan.a@est.tech>
sample-rapp-generator/generate.sh

index a4eeba4..d606186 100755 (executable)
@@ -23,6 +23,11 @@ if [[ $# -ne 1 ]]; then
   exit 1
 fi
 
+if ! command -v zip &> /dev/null; then
+  echo "Zip command not found. Please install zip to proceed."
+  exit 1
+fi
+
 DIRECTORY=${1%/}
 PACKAGENAME="$DIRECTORY.csar"