From 53c15355f4136c5947aa10a9f831bd29a44a4124 Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Mon, 28 Sep 2020 20:51:13 -0300 Subject: [PATCH] fix folder path --- common.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/common.sh b/common.sh index 85af1c6..a008ff0 100755 --- a/common.sh +++ b/common.sh @@ -25,7 +25,6 @@ log() { ## current date and folder structure START_DATE=$(date '+%d-%m-%Y %H:%M') -FOLDER_DATE="$(date +%Y)/$(date +%m)/$(date +%d)" ## sane checks if [ ! -d "${NOAA_HOME}" ]; then @@ -49,8 +48,8 @@ if [ ! -d "${RAMFS_AUDIO}/audio/" ]; then mkdir -m 775 -p "${RAMFS_AUDIO}/audio/" fi -if [ ! -d "${NOAA_OUTPUT}/image/" ]; then - mkdir -m 775 -p "${NOAA_OUTPUT}/image/" +if [ ! -d "${NOAA_OUTPUT}/images/" ]; then + mkdir -m 775 -p "${NOAA_OUTPUT}/images/" fi if [ ! -d "${NOAA_HOME}/map/" ]; then @@ -60,7 +59,3 @@ fi if [ ! -d "${NOAA_HOME}/predict/" ]; then mkdir -m 775 -p "${NOAA_HOME}/predict/" fi - -if [ ! -d "${NOAA_OUTPUT}/image/${FOLDER_DATE}" ]; then - mkdir -m 775 -p "${NOAA_OUTPUT}/image/${FOLDER_DATE}" -fi