Skip to content

Commit 8c48256

Browse files
committed
Merge pull request #1 from bman4789/master
Fixed errors when scripts ran from other dirs For example, ./wargame-master/compile.sh would not work; it does with this patch. Thanks Brian!
2 parents 1d0d1f9 + 5dc573a commit 8c48256

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

compile.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
javac -d "bin" -cp "source/wargame/" source/wargame/*.java
1+
cd ${0%/*}
2+
javac -d "bin" -cp "source/wargame/" source/wargame/*.java

run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
cd ${0%/*}
12
java -cp "bin" wargame/App

0 commit comments

Comments
 (0)