mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-20 05:58:27 +00:00
Move .modbranch to __arkmanager_modbranch__.info
This commit is contained in:
parent
2b83abf65c
commit
eaefdfaaa6
@ -1397,7 +1397,11 @@ isModUpdateNeeded(){
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ \( ! -f "$moddestdir/.modbranch" \) ] || [ "$(<"$moddestdir/.modbranch")" != "$modbranch" ]; then
|
if [ -f "$moddestdir/.modbranch" ]; then
|
||||||
|
mv "$moddestdir/.modbranch" "$moddestdir/__arkmanager_modbranch__.info"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ \( ! -f "$moddestdir/__arkmanager_modbranch__.info" \) ] || [ "$(<"$moddestdir/__arkmanager_modbranch__.info")" != "$modbranch" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1480,7 +1484,11 @@ doExtractMod(){
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ \( ! -f "$moddestdir/.modbranch" \) ] || [ "$(<"$moddestdir/.modbranch")" != "$modbranch" ]; then
|
if [ -f "$moddestdir/.modbranch" ]; then
|
||||||
|
mv "$moddestdir/.modbranch" "$moddestdir/__arkmanager_modbranch__.info"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ \( ! -f "$moddestdir/__arkmanager_modbranch__.info" \) ] || [ "$(<"$moddestdir/__arkmanager_modbranch__.info")" != "$modbranch" ]; then
|
||||||
rm -rf "$moddestdir"
|
rm -rf "$moddestdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1590,7 +1598,7 @@ doExtractMod(){
|
|||||||
echo -ne '\x01\x00\x00\x00\x08\x00\x00\x00ModType\x00\x02\x00\x00\x001\x00' >>"${moddestdir}.mod"
|
echo -ne '\x01\x00\x00\x00\x08\x00\x00\x00ModType\x00\x02\x00\x00\x001\x00' >>"${moddestdir}.mod"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$modbranch" >"$moddestdir/.modbranch"
|
echo "$modbranch" >"$moddestdir/__arkmanager_modbranch__.info"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user