about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xafl-system-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/afl-system-config b/afl-system-config
index 2b945d7a..5ad9d937 100755
--- a/afl-system-config
+++ b/afl-system-config
@@ -99,7 +99,7 @@ if [ "$PLATFORM" = "Darwin" ] ; then
 fi
 if [ "$PLATFORM" = "Haiku" ] ; then
   DEBUG_SERVER_DIR=~/config/settings/system/debug_server
-  [ ! -r ${DEBUG_SERVER_DIR} ] && mkdir ${DEBUG_SERVER_DIR}
+  [ ! -d ${DEBUG_SERVER_DIR} ] && mkdir -p ${DEBUG_SERVER_DIR}
   SETTINGS=${DEBUG_SERVER_DIR}/settings
   [ -r ${SETTINGS} ] && grep -qE "default_action\s+kill" ${SETTINGS} && { echo "Nothing to do"; } || { \
     echo We change the debug_server default_action from user to silently kill; \