Skip to content

Commit

Permalink
IDS-9779: Fix modeler elements error (#138)
Browse files Browse the repository at this point in the history
* add warning to modeler installer

* added warning to linux modeler script

* add exit when elements JSON is missing

* exiting echo
  • Loading branch information
voxparcxls authored Apr 25, 2023
1 parent f079fe1 commit e23745a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions install/modeler/install_linux_modeler.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
#!/bin/bash

ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

echo
echo "Camunda Modeler Installer for Linux"
echo
echo "This will install the Camunda Modeler in this directory:"
pwd
echo

if [ ! -f "elements.json" ]; then
echo "****************************************"
echo "*************** WARNING ! **************"
echo "****************************************"
echo "+--------------------------------------+"
echo "File 'elements.json' does not exists in ${ROOT} directory "
echo "+--------------------------------------+"
echo
echo "Run the Camunda Modeler Installer from 'modeler/' folder or copy elements.json to '${ROOT}' before running modeler script "
echo "Exiting..."
exit 1
fi

# Confirm Install
while [[ ! $REPLY =~ ^(y|Y|n|N)$ ]]; do
read -p "Press Y to continue or N to abort. (Y/N): " REPLY
Expand Down
15 changes: 15 additions & 0 deletions install/modeler/install_mac_modeler.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
#!/bin/bash

ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

echo
echo "Camunda Modeler Installer for Mac OS"
echo

if [ ! -f "elements.json" ]; then
echo "****************************************"
echo "*************** WARNING ! **************"
echo "****************************************"
echo "+--------------------------------------+"
echo "File 'elements.json' does not exists in ${ROOT} directory "
echo "+--------------------------------------+"
echo
echo "Run the Camunda Modeler Installer from 'modeler/' folder or copy elements.json to '${ROOT}' before running modeler script "
echo "Exiting..."
exit 1
fi

if [ ! -d "/Applications" ]; then
echo "Error: Cannot find '/Applications' directory. Is this a Mac OS machine?"
echo "Exiting..."
Expand Down

0 comments on commit e23745a

Please sign in to comment.