diff options
-rw-r--r-- | gst-autogen.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-autogen.sh b/gst-autogen.sh index 251d399..2dced48 100644 --- a/gst-autogen.sh +++ b/gst-autogen.sh @@ -74,6 +74,7 @@ version_check () pkg_major=`echo $pkg_version | cut -d. -f1 | sed s/[a-zA-Z\-].*//g` pkg_minor=`echo $pkg_version | cut -d. -f2 | sed s/[a-zA-Z\-].*//g` pkg_micro=`echo $pkg_version | cut -d. -f3 | sed s/[a-zA-Z\-].*//g` + test -z "$pkg_major" && pkg_major=0 test -z "$pkg_minor" && pkg_minor=0 test -z "$pkg_micro" && pkg_micro=0 |