From: aravind.est Date: Thu, 11 Jan 2024 12:49:50 +0000 (+0000) Subject: Check added for zip command X-Git-Tag: 0.1.0~43 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F12432%2F1;p=nonrtric%2Fplt%2Frappmanager.git Check added for zip command Shows a message when the zip utility is not found. Issue-ID: NONRTRIC-964 Change-Id: I7eaac63c12dd70dd5b90b8733e90417ca687b41e Signed-off-by: aravind.est --- diff --git a/sample-rapp-generator/generate.sh b/sample-rapp-generator/generate.sh index a4eeba4..d606186 100755 --- a/sample-rapp-generator/generate.sh +++ b/sample-rapp-generator/generate.sh @@ -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"