Skip to content

Instantly share code, notes, and snippets.

@kost
Created December 23, 2019 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kost/73b29ce7a9011c15f2936bb517eb8e5b to your computer and use it in GitHub Desktop.
Save kost/73b29ce7a9011c15f2936bb517eb8e5b to your computer and use it in GitHub Desktop.
--- platform_check.orig 2019-12-23 15:34:28.380333391 +0000
+++ platform_check 2019-12-23 15:35:50.004593076 +0000
@@ -12,15 +12,7 @@
case $PLATFORM in
linux | linux_a_64 )
case $VERSION in
- 5.*)
- fullsubver=`echo $VERSION | sed s/5\\\.//`
- numsubver=`echo $fullsubver | sed -e 's/[^0-9].*//'`
- if [ $numsubver -gt 8 ]; then
- PLATFORM_STATUS="ok";
- else
- PLATFORM_STATUS=`echo $PLATFORM $VERSION`;
- fi;;
- 3.* | 2.4.* | 2.6.* )
+ 5.* | 4.* | 3.* | 2.4.* | 2.6.* )
PLATFORM_STATUS="ok";;
*)
PLATFORM_STATUS=`echo $PLATFORM $VERSION`;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment