Skip to content

Commit

Permalink
"golf"
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Jan 6, 2021
1 parent 1c3e0e0 commit b286ea5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/sh

TEST_JIT=0

[ $# -ne 0 ] && TEST_JIT=1
TEST_JIT=$#

_log() {
echo -n "$(tput setaf 6)$2 $(tput setaf 5)$1$(tput sgr0) $(printf '.%.0s' $(seq 1 70))" | head -c 70
Expand Down Expand Up @@ -51,7 +49,7 @@ _disasm() {
}

_run_jit() {
[ $TEST_JIT -eq 1 ] && _interpreter "$1" "-j" "[JIT]"
[ $TEST_JIT -gt 0 ] && _interpreter "$1" "-j" "[JIT]"
_interpreter "$1" "" "[RUN]"
}

Expand Down

0 comments on commit b286ea5

Please sign in to comment.