Skip to content

Commit e3f3e0c

Browse files
authored
the list file existing or not should not fail the copy instead fail the nasm compiling itself so nasm -v is excused
1 parent 2930365 commit e3f3e0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/nasm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ printf '%s\n' "$*" >> "$projnasm_logfile"
3434
rm -f "$ofile"
3535
"$projnasm_nasm1" "${param1[@]}" || exit $?
3636
"$projnasm_nasm2" "${param2[@]}" || exit $?
37-
cp -f "$ofile.1" "$ofile"
37+
if [ -f $ofile.1 ]; then
38+
cp -f "$ofile.1" "$ofile"
39+
fi

0 commit comments

Comments
 (0)