Pārlūkot izejas kodu

add missing rm's

tags/1.5
Nico Rey pirms 4 gadiem
vecāks
revīzija
698a85dd9d
2 mainītis faili ar 3 papildinājumiem un 5 dzēšanām
  1. +0
    -5
      common.sh
  2. +3
    -0
      receive.sh

+ 0
- 5
common.sh Parādīt failu

@@ -35,11 +35,6 @@ if [ ! -d "${NOAA_OUTPUT}/audio/" ]; then
mkdir -m 775 -p "${NOAA_OUTPUT}/audio/"
fi


if [ ! -d "${METEOR_OUTPUT}" ]; then
mkdir -m 775 -p "${METEOR_OUTPUT}"
fi

if [ ! -d "${METEOR_OUTPUT}/audio/" ]; then
mkdir -m 775 -p "${METEOR_OUTPUT}/audio/"
fi


+ 3
- 0
receive.sh Parādīt failu

@@ -44,6 +44,9 @@ for i in $ENHANCEMENTS; do
/usr/bin/convert -quality 90 -format jpg "${NOAA_OUTPUT}/images/${3}-$i.jpg" -undercolor black -fill yellow -pointsize 18 -annotate +20+20 "${1} $i ${START_DATE}Elev: $7°" "${NOAA_OUTPUT}/images/${3}-$i.jpg"
/usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-$i.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-$i.jpg"
done

rm "${NOAA_HOME}/map/${3}-map.png"

if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then
sqlite3 /home/pi/raspberry-noaa/panel.db "insert into decoded_passes (pass_start, file_path, daylight_pass, is_noaa) values ($5,\"$3\", 1,1);"
else


Notiek ielāde…
Atcelt
Saglabāt