Skip to content

Commit bc24b64

Browse files
authored
made the script more posix portable
1 parent 31264cf commit bc24b64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/sh
2-
function usage() {
2+
usage() {
33
echo "Usage: ./run.sh [virtual-env-directory]"
44
echo
55
}
6-
function error() {
6+
error() {
77
echo "Something went wrong when sourcing the venv. Please check your venv directory and ensure j2dx is installed correctly."
88
usage
99
exit 1
@@ -27,4 +27,4 @@ else
2727
fi
2828
fi
2929

30-
j2dx & python3 -m http.server && kill $!
30+
j2dx & python3 -m http.server && kill $!

0 commit comments

Comments
 (0)