mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
dm.sh will again return error code on failure
This commit is contained in:
+6
-2
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o pipefail
|
||||
|
||||
dmepath=""
|
||||
retval=1
|
||||
|
||||
@@ -47,8 +49,10 @@ fi
|
||||
"$DM" $dmepath.mdme | tee build_log.txt
|
||||
retval=$?
|
||||
|
||||
mv $dmepath.mdme.dmb $dmepath.dmb
|
||||
mv $dmepath.mdme.rsc $dmepath.rsc
|
||||
if [[ $retval == 0 ]]; then
|
||||
mv $dmepath.mdme.dmb $dmepath.dmb
|
||||
mv $dmepath.mdme.rsc $dmepath.rsc
|
||||
fi
|
||||
|
||||
rm $dmepath.mdme
|
||||
|
||||
|
||||
Reference in New Issue
Block a user