Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[COMMON] Enforce checkbashisms tox profile
[oom.git]
/
kubernetes
/
robot
/
scripts
/
etescript
/
vnfsdk-etescript.sh
diff --git
a/kubernetes/robot/scripts/etescript/vnfsdk-etescript.sh
b/kubernetes/robot/scripts/etescript/vnfsdk-etescript.sh
index
f1d3969
..
e23e5ed
100755
(executable)
--- a/
kubernetes/robot/scripts/etescript/vnfsdk-etescript.sh
+++ b/
kubernetes/robot/scripts/etescript/vnfsdk-etescript.sh
@@
-1,6
+1,6
@@
-#
SPDX-License-Identifier: Apache-2.0
+#
!/bin/sh
-#
!/bin/bash
+#
SPDX-License-Identifier: Apache-2.0
#
# Create root certificate CA (Certificate Authority) and its private key.
#
# Create root certificate CA (Certificate Authority) and its private key.
@@
-35,7
+35,7
@@
copy_package_certs_to_robot () {
mkdir "$DIR/$SCRIPTDIR/tmp"
cd "$DIR/$SCRIPTDIR/tmp"
mkdir "$DIR/$SCRIPTDIR/tmp"
cd "$DIR/$SCRIPTDIR/tmp"
-if [
[ -f rootCA-robot-$SDCVALID.cert && -f package-robot-$SDCVALID.cert && -f package-robot-$SDCINVALID.cert && -f package-private-robot-$SDCVALID.key && -f package-private-robot-$SDCINVALID.key ]
]; then
+if [
-f rootCA-robot-$SDCVALID.cert ] && [ -f package-robot-$SDCVALID.cert ] && [ -f package-robot-$SDCINVALID.cert ] && [ -f package-private-robot-$SDCVALID.key ] && [ -f package-private-robot-$SDCINVALID.key
]; then
echo "All files are present";
else
generate_ca_key_cert_and_package_cert_issued_by_CA $SDCVALID
echo "All files are present";
else
generate_ca_key_cert_and_package_cert_issued_by_CA $SDCVALID