summaryrefslogtreecommitdiff
path: root/include/rom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/rom.sh')
-rw-r--r--include/rom.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rom.sh b/include/rom.sh
index 34dea35c..53bb4487 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -257,7 +257,7 @@ cprom()
newrom="${newrom%.rom}_${tmpnew%.gkb}.rom"
irom="$tmprom"
- [ $# -lt 1 ] || irom="`mktemp`" || err "!mk irom, $(echo "$@")"
+ [ $# -lt 1 ] || irom="`mktemp || err "!mk irom, $(echo "$@")"`" || err
[ $# -gt 0 ] && x_ cp "$tmprom" "$irom" && cpcmd="mv"
[ $# -gt 0 ] && [ "${1%.gkb}" != "$1" ] && \