mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 18:48:26 +00:00
Prevent directory not found error on mod install
This commit is contained in:
parent
17070b40bc
commit
f4aad61192
@ -2247,6 +2247,9 @@ doExtractMod(){
|
||||
echo "$modbranch" >"$modextractdir/__arkmanager_modbranch__.info"
|
||||
|
||||
if [[ "$modextractdir" != "$moddestdir" ]]; then
|
||||
if [ ! -d "${moddestdir}" ]; then
|
||||
mkdir -p "${moddestdir}"
|
||||
fi
|
||||
if [ "$(stat -c "%d" "$modextractdir")" == "$(stat -c "%d" "$moddestdir")" ]; then
|
||||
if [ -n "$useRefLinks" ]; then
|
||||
cp -au --reflink=always --remove-destination "${modextractdir}/." "${moddestdir}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user