Code Review
/
nonrtric
/
plt
/
rappmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3a47cb7
)
Check added for zip command
32/12432/1
author
aravind.est
<aravindhan.a@est.tech>
Thu, 11 Jan 2024 12:49:50 +0000
(12:49 +0000)
committer
aravind.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
patch
|
blob
|
history
diff --git
a/sample-rapp-generator/generate.sh
b/sample-rapp-generator/generate.sh
index
a4eeba4
..
d606186
100755
(executable)
--- 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"