Skip to content

Commit 936cdb7

Browse files
committed
[Minibasic] Fix some issues in shell script
1 parent a9a269e commit 936cdb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

minibasic/syntax_gen/gen.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
readonly ERL=/home/kostis/HiPE/otp/bin/erl
1010
export ERL_LIBS=/home/kostis/HiPE/proper
1111

12-
${ERL}c -pa ${ERL_LIBS}/ebin +debug_info *.erl
12+
${ERL}c -pa ${ERL_LIBS}/ebin +debug_info ./*.erl
1313

1414
mkdir -p progs
15-
for i in $(seq 1 $1)
15+
for i in $(seq 1 "$1")
1616
do
17-
$ERL -noshell -noinput -s minibasic_pp p -s erlang halt > progs/p$i.mba
17+
$ERL -noshell -noinput -s minibasic_pp p -s erlang halt > progs/p"$i".mba
1818
done

0 commit comments

Comments
 (0)