Skip to content

Commit 9c8bbf2

Browse files
committed
fix ssc not exiting when input file doesn't exists
1 parent b0b4ed6 commit 9c8bbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ b2o() {
141141
# cleanup on exit
142142
trap "rm -f \"$1.cpp\" \"$1.tmp\" i.o i s.o s rc4 crc32 d.sfs" EXIT
143143

144-
perl -pe 's/^\xEF\xBB\xBF//; s/\r\n/\n/' "$1" >"$1.tmp" || exit 1
144+
perl -pe 's/^\xEF\xBB\xBF//; s/\r\n/\n/' <"$1" >"$1.tmp" || exit 1
145145
if [ "$(head -c2 "$1.tmp")" = "#!" ]; then
146146
SHEBANG="$(head -n1 "$1.tmp")"
147147
SHEBANG_LEN="$(head -n1 "$1.tmp" | wc -c)"

0 commit comments

Comments
 (0)