Skip to content

Broken cgx.sh #22

@maroshi

Description

@maroshi

cgx.sh has 3 issues.

  1. Incorrect cgx directory version 4.0.1, should be 4.0.2
  2. The cgx version is hardcoded into the script
  3. Implicit script requirement to be invoked from cgx directory

This is a purposed solution to the above issues 1,2 and 3:

#!/bin/bash

# get the cgx script dir
cgxDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# activate cgx from its home dir
cd $cgxDIR
cgxJarFile=$(realpath $(find . -name corewars*.jar))
java -cp $cgxJarFile il.co.codeguru.corewars8086.CoreWarsEngine

Strongly suggest same treatment to cgx.bat
I could submit a pull requerst, but the deployment files are not included in the project code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions