From 2f366a2df6c0ab964f2a06891fe204c71f367794 Mon Sep 17 00:00:00 2001 From: David Frantz Date: Thu, 7 Sep 2023 09:42:55 +0200 Subject: [PATCH] convert L2 prm to unix EOL --- Makefile | 2 +- bash/force-level2.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2144cbfc..6cb1a83d 100755 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ EXECUTABLES = gcc g++ \ gdal_edit.py gdal_calc.py gdal-config \ ogrinfo ogr2ogr \ gsl-config curl-config \ - unzip tar lockfile-create lockfile-remove rename \ + unzip tar lockfile-create lockfile-remove rename dos2unix \ python3 pip3 \ R \ landsatlinks \ diff --git a/bash/force-level2.sh b/bash/force-level2.sh index a765bd24..3cf5577c 100755 --- a/bash/force-level2.sh +++ b/bash/force-level2.sh @@ -68,6 +68,8 @@ if [ ! -f $PRM ]; then echo $PRM "does not exist"; exit elif [ ! -r $PRM ]; then echo $PRM "is not readable"; exit +else + dos2unix -q $PRM fi