Commit 9b40d473 authored by Nick Bearson's avatar Nick Bearson
Browse files

removing hardcoded src dir

parent eedbdd25
...@@ -18,10 +18,10 @@ filename=$(basename $filepath) ...@@ -18,10 +18,10 @@ filename=$(basename $filepath)
# set $SCRIPT based on input type # set $SCRIPT based on input type
if [ ${filename:0:2} == "LC" ] && [ ${filename: -4} == ".zip" ]; then # landsat zip files if [ ${filename:0:2} == "LC" ] && [ ${filename: -4} == ".zip" ]; then # landsat zip files
echo "SAW LANDSAT ZIP: ${filename}" echo "SAW LANDSAT ZIP: ${filename}"
SCRIPT="bash /home/eodn/eodn2realearth/src/process-LCzip.sh &> ${LOGS}/process-LCzip.log" SCRIPT="bash ${SRC}/process-LCzip.sh &> ${LOGS}/process-LCzip.log"
elif [ ${filename:0:2} == "LC" ] && [ ${filename: -7} == ".tar.gz" ]; then # landsat zip files elif [ ${filename:0:2} == "LC" ] && [ ${filename: -7} == ".tar.gz" ]; then # landsat zip files
echo "SAW LANDSAT TAR.GZ: ${filename}" echo "SAW LANDSAT TAR.GZ: ${filename}"
SCRIPT="bash /home/eodn/eodn2realearth/src/process-LCtgz.sh &> ${LOGS}/process-LCtgz.log" SCRIPT="bash ${SRC}/process-LCtgz.sh &> ${LOGS}/process-LCtgz.log"
else # not recognized else # not recognized
echo "SAW (NOT RECOGNIZED): ${filename}" echo "SAW (NOT RECOGNIZED): ${filename}"
exit 0 exit 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment