Skip to content

Commit

Permalink
Merge pull request #82 from ernstste/develop
Browse files Browse the repository at this point in the history
Fix error when using -n as first option
  • Loading branch information
davidfrantz committed Apr 15, 2021
2 parents 9f91063 + 27c8ee6 commit 38a04e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bash/force-level1-csd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ UPDATE=0
KEEPMETA=0

# Negative coordinates: change ( -) to %dummy% if followed by integer: prevent interpretation as option by getopt
ARGS=$(echo "$@" | sed -E "s/ -([0-9])/ %dummy%\1/g")
ARGS=$(echo "$*" | sed -E "s/ -([0-9])/ %dummy%\1/g")
set -- $ARGS

ARGS=`getopt -o c:d:nks:t:u -l cloudcover:,daterange:,no-act,keep-meta,sensors:,tier:,update -n $0 -- "$@"`
Expand Down Expand Up @@ -170,7 +170,6 @@ done
ARGS=$(echo "$@" | sed -E "s/%dummy%([0-9])/-\1/g")
eval set -- "$ARGS"


# Check for update flag and update metadata catalogue if set
if [ $UPDATE -eq 1 ]; then
METADIR="$1"
Expand Down

0 comments on commit 38a04e6

Please sign in to comment.