Skip to content

Commit

Permalink
devonfw#849: fixed some issues with MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedagdmoun committed Aug 24, 2022
1 parent 1b6f845 commit e79eb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/src/main/resources/scripts/command/gcviewer
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ source "$(dirname "${0}")"/../functions

GCVIEWER_HOME="${DEVON_IDE_HOME}/software/gcviewer/"
doEcho "Checking if the latest realease of GCViewer is installed..."
LATEST_VERSION
LATEST_VERSION=$(curl "https://github.com/chewiebug/GCViewer/tags" | awk -F "/tag/" '/GCViewer/ {print $2}' | sort -r | head -1 | awk -F "\">" '{print $1}')

# gcviewer installation
Expand All @@ -26,7 +25,7 @@ function doSetup(){

if doIsMacOs
then
doRunCommand "cd ${GCVIEWER_HOME}gcviewer"
doRunCommand "cd ${GCVIEWER_HOME}"
doRunCommand "unzip ${GCVIEWER_HOME}gcviewer-${LATEST_VERSION}-mac.zip"
fi
}
Expand All @@ -50,6 +49,7 @@ function doStart(){
then
doSetup
else
doEcho "Checking if Java is installed..."
doDevonCommand "java"
doEcho "Starting GCViewer..."
doRunCommand "java -jar ${GCVIEWER_HOME}GCViewer.app/Contents/Java/gcviewer-${LATEST_VERSION}.jar"
Expand Down

0 comments on commit e79eb5b

Please sign in to comment.