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
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

Loading…
Cancel
Save