Skip to content

Commit

Permalink
v2.5.8 - Fix for function isFloatBiggerThanZero
Browse files Browse the repository at this point in the history
  • Loading branch information
tavinus committed Jan 27, 2023
1 parent 1e633d9 commit 1edc9d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdfScale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Writen for Bash.
#
# Gustavo Arnosti Neves - 2016 / 07 / 10
# Latest Version - 2020 / 04 / 04
# Latest Version - 2023 / 01 / 26
#
# This app: https://github.com/tavinus/pdfScale
#
Expand All @@ -20,7 +20,7 @@
#
################################################################

VERSION="2.5.7"
VERSION="2.5.8"


###################### EXTERNAL PROGRAMS #######################
Expand Down Expand Up @@ -2042,7 +2042,7 @@ isFloat() {

# Returns $TRUE if $1 is a floating point number bigger than zero, $FALSE otherwise
isFloatBiggerThanZero() {
isFloat "$1" && [[ (( $1 > 0 )) ]] && return $TRUE
isFloat "$1" && [[ "$1" =~ ^0*[1-9] || "$1" =~ ^0*[.]0*[1-9] ]] && return $TRUE
return $FALSE
}

Expand Down

0 comments on commit 1edc9d5

Please sign in to comment.