Browse Source

fix folder path

tags/1.5
Nico Rey 4 years ago
parent
commit
53c15355f4
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      common.sh

+ 2
- 7
common.sh View File

@@ -25,7 +25,6 @@ log() {


## current date and folder structure ## current date and folder structure
START_DATE=$(date '+%d-%m-%Y %H:%M') START_DATE=$(date '+%d-%m-%Y %H:%M')
FOLDER_DATE="$(date +%Y)/$(date +%m)/$(date +%d)"


## sane checks ## sane checks
if [ ! -d "${NOAA_HOME}" ]; then if [ ! -d "${NOAA_HOME}" ]; then
@@ -49,8 +48,8 @@ if [ ! -d "${RAMFS_AUDIO}/audio/" ]; then
mkdir -m 775 -p "${RAMFS_AUDIO}/audio/" mkdir -m 775 -p "${RAMFS_AUDIO}/audio/"
fi 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 fi


if [ ! -d "${NOAA_HOME}/map/" ]; then if [ ! -d "${NOAA_HOME}/map/" ]; then
@@ -60,7 +59,3 @@ fi
if [ ! -d "${NOAA_HOME}/predict/" ]; then if [ ! -d "${NOAA_HOME}/predict/" ]; then
mkdir -m 775 -p "${NOAA_HOME}/predict/" mkdir -m 775 -p "${NOAA_HOME}/predict/"
fi fi

if [ ! -d "${NOAA_OUTPUT}/image/${FOLDER_DATE}" ]; then
mkdir -m 775 -p "${NOAA_OUTPUT}/image/${FOLDER_DATE}"
fi

Loading…
Cancel
Save