Skip to content

Error for "cutoff elevation" instead of "time window" #67

Description

@Anuar7272

After updating the soft, my script stopped working and complained about an invalid cutoff elevation: ‘2’, although I passed -c 10 -twnd 2, it looks like -twnd has been mistakenly changed to cutoff elevation in ~/.PRIDE_PPPAR_BIN/pdp3:

 384             -twnd | --time-window )
 385                 [ -z "$twnd" ]                                  || throw_conflict_opt "$1"
 386                 check_optional_arg "$2" "$last_arg"             || throw_require_arg  "$1"
 387                 if [[ $2 =~ $PNUM_REGEX ]]               && \
 388                    [[ $(echo "0.0001 <= $2" | bc) -eq 1 ]] && \
 389                    [[ $(echo "$2 <= 1.00" | bc) -eq 1 ]]; then
 390                     twnd="$2"
 391                 else
 392                     throw_invalid_arg "cutoff elevation" "$2"
 393                 fi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions