From 3cf6d9e4ffaf72b63a8b32d92acc4860eeeecd8d Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Sat, 28 Mar 2015 20:42:47 -0700 Subject: [PATCH] Make sure log dir exists before trying to write into it --- script-modules/log.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script-modules/log.sh b/script-modules/log.sh index d4472b77..acec92dd 100644 --- a/script-modules/log.sh +++ b/script-modules/log.sh @@ -20,14 +20,13 @@ libretro_log_init() { return fi + mkdir -p "$LIBRETRO_LOG_DIR" + if [ -n "$LIBRETRO_LOG_SUPER" ]; then log_super="$LIBRETRO_LOG_DIR/$LIBRETRO_LOG_SUPER" [ -z "$LIBRETRO_LOG_APPEND" ] && : > $log_super fi # Core log can't be truncated here - - mkdir -p "$LIBRETRO_LOG_DIR" - } # TODO: Move this into libretro_log_init once libretro-fetch is fixed