Skip to content

Commit 1f0436e

Browse files
committed
[HEADLESS] Fix workspace incremental value for macos
1 parent a004b64 commit 1f0436e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

travis/jdk/macosx/gama-headless.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if [ $workspaceCreate -eq 0 ]; then
4949
# w/o output folder
5050
else
5151
# create workspace in current folder
52-
passWork=.workspace$(find ./ -maxdepth 1 -name ".workspace*" | wc -l)
52+
passWork=.workspace$(find ./ -maxdepth 1 -name ".workspace*" | expr $(wc -l))
5353
fi
5454

5555
if ! "$( dirname "${BASH_SOURCE[0]}" )"/../jdk/Contents/Home/bin/java -cp "$( dirname "${BASH_SOURCE[0]}" )"/../Eclipse/plugins/org.eclipse.equinox.launcher*.jar -Xms512m $memory -Djava.awt.headless=true org.eclipse.core.launcher.Main -configuration "$( dirname "${BASH_SOURCE[0]}" )"/configuration -application msi.gama.headless.product -data $passWork "$@"; then

ummisco.gama.product/extraresources/headless/osx/gama-headless.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if [ $workspaceCreate -eq 0 ]; then
5757
# w/o output folder
5858
else
5959
# create workspace in current folder
60-
passWork=.workspace$(find ./ -maxdepth 1 -name ".workspace*" | wc -l)
60+
passWork=.workspace$(find ./ -maxdepth 1 -name ".workspace*" | expr $(wc -l))
6161
fi
6262

6363
if ! java -cp "$( dirname "${BASH_SOURCE[0]}" )"/../Eclipse/plugins/org.eclipse.equinox.launcher*.jar -Xms512m $memory -Djava.awt.headless=true org.eclipse.core.launcher.Main -configuration "$( dirname "${BASH_SOURCE[0]}" )"/configuration -application msi.gama.headless.product -data $passWork "$@"; then

0 commit comments

Comments
 (0)