Fix special characters interferng in scripts

This commit is contained in:
1computer1 2019-06-01 01:04:15 -04:00
parent 20a2199bbf
commit 2f38bc640c
25 changed files with 29 additions and 29 deletions

View file

@ -1,6 +1,6 @@
mkdir "$CODEDIR" && cd "$CODEDIR"
echo "$1" > program.pas
printf %s "$1" > program.pas
# fpc does not use stderr, ld however does, capture both
res="$(fpc program.pas 2>&1)"
@ -8,7 +8,7 @@ res="$(fpc program.pas 2>&1)"
if [ $? -eq 0 ]; then
./program
else
echo "$res"
printf %s "$res"
exit 1
fi