Explorar el Código

fix folder path

tags/1.5
Nico Rey hace 4 años
padre
commit
53c15355f4
Se han modificado 1 ficheros con 2 adiciones y 7 borrados
  1. +2
    -7
      common.sh

+ 2
- 7
common.sh Ver fichero

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

Cargando…
Cancelar
Guardar