Answer the question
In order to leave comments, you need to log in
How to check OS version in bash?
Good morning. Please tell me how to check the name of the distribution and its version in the .sh file.
For example: If the name of the distribution is Debian and its version is 7, then .sh should download one file.
And if the name of the distribution is CentOS and its version is 7, then the second file should be downloaded.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question