From f4aad61192aab713dec1c768f818f85509563b88 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Fri, 5 May 2017 21:41:05 +1000 Subject: [PATCH] Prevent directory not found error on mod install --- tools/arkmanager | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/arkmanager b/tools/arkmanager index d839f03..f8ead29 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -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}"