File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
25
26
26
### Fixed
27
27
28
+ - do our best to determine ` OS_VERSION ` when ` VERSION_ID ` is not in /etc/os-release
28
29
- ` run_app_tests ` now correctly upload code coverage if asked to
Original file line number Diff line number Diff line change 18
18
. /etc/os-release
19
19
20
20
OS_ID=$ID
21
- OS_VERSION=$VERSION_ID
21
+ OS_VERSION=${VERSION_ID:- }
22
+
23
+ # VERSION_ID is an optional field, do what we can to deduce when missing
24
+ if [[ " $OS_VERSION " = " " ]]; then
25
+ case " $OS_ID " in
26
+ debian)
27
+ OS_VERSION=$( cat /etc/debian_version)
28
+ OS_VERSION=${OS_VERSION%% .* }
29
+ ;;
30
+ * )
31
+ OS_VERSION=unknown
32
+ ;;
33
+ esac
34
+ fi
22
35
23
36
echo " Running on ${OS_ID} -${OS_VERSION} "
24
37
You can’t perform that action at this time.
0 commit comments