aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/zip
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-12-06 12:28:02 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-12-06 12:28:02 +0530
commit271cc28e5ad26cdc72db5b3b837545e717c6f225 (patch)
treeea61b29ef4444c2f9c276244c019ef57e73a6fae /deployment/zip
parent0cb830f903d622674770684f8ea633c405bb7d6b (diff)
Add support for running oclip from windows shell
Issue-ID: CLI-66 Change-Id: Id12759d0b7afcc29c6ee9d3f4c504925f09074c9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'deployment/zip')
-rwxr-xr-xdeployment/zip/src/main/release/bin/oclip.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/deployment/zip/src/main/release/bin/oclip.sh b/deployment/zip/src/main/release/bin/oclip.sh
index a3d51940..90fcfc53 100755
--- a/deployment/zip/src/main/release/bin/oclip.sh
+++ b/deployment/zip/src/main/release/bin/oclip.sh
@@ -22,10 +22,17 @@ then
exit 1
fi
-CLASSPATH=$OPEN_CLI_HOME:$OPEN_CLI_HOME/conf:$OPEN_CLI_HOME/docs
+if [ "$OSTYPE" = "msys" ]
+then
+ SEP=\;
+else
+ SEP=:
+fi
+
+CLASSPATH=${OPEN_CLI_HOME}${SEP}${OPEN_CLI_HOME}/conf${SEP}${OPEN_CLI_HOME}/docs
for entry in "$OPEN_CLI_HOME/lib"/*
do
- CLASSPATH=$CLASSPATH:$entry
+ CLASSPATH=${CLASSPATH}${SEP}${entry}
done
if [ "$OPEN_CLI_DEBUG" = "true" ]