Prevent directory not found error on mod install

This commit is contained in:
Ben Peddell 2017-05-05 21:41:05 +10:00 committed by GitHub
parent 17070b40bc
commit f4aad61192

View File

@ -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}"