Commit 45a46b09486a57a1a99fb4313610fb2fb4955633
Committed by
GitHub
1 parent
26098d89
Exists in
master
Update install_ngrok.sh
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
install_ngrok.sh
@@ -74,9 +74,9 @@ function checkos(){ | @@ -74,9 +74,9 @@ function checkos(){ | ||
74 | function getversion(){ | 74 | function getversion(){ |
75 | if [[ -s /etc/redhat-release ]];then | 75 | if [[ -s /etc/redhat-release ]];then |
76 | grep -oE "[0-9.]+" /etc/redhat-release | 76 | grep -oE "[0-9.]+" /etc/redhat-release |
77 | - else | 77 | + else |
78 | grep -oE "[0-9.]+" /etc/issue | 78 | grep -oE "[0-9.]+" /etc/issue |
79 | - fi | 79 | + fi |
80 | } | 80 | } |
81 | # CentOS version | 81 | # CentOS version |
82 | function centosversion(){ | 82 | function centosversion(){ |
@@ -87,7 +87,7 @@ function centosversion(){ | @@ -87,7 +87,7 @@ function centosversion(){ | ||
87 | return 0 | 87 | return 0 |
88 | else | 88 | else |
89 | return 1 | 89 | return 1 |
90 | - fi | 90 | + fi |
91 | } | 91 | } |
92 | # Check OS bit | 92 | # Check OS bit |
93 | function check_os_bit(){ | 93 | function check_os_bit(){ |
@@ -537,4 +537,3 @@ update) | @@ -537,4 +537,3 @@ update) | ||
537 | echo "Usage: `basename $0` {install|uninstall|update|config}" | 537 | echo "Usage: `basename $0` {install|uninstall|update|config}" |
538 | ;; | 538 | ;; |
539 | esac | 539 | esac |
540 | - |