File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,21 @@ _warn() {
53
53
54
54
_check_version_id () {
55
55
if [[ -z " ${VERSION_ID} " ]]; then
56
- cat /etc/os-release
57
- _error " Unable to identify distribution. Please, report to https://forum.crystal-lang.org/c/help-support/11"
56
+ _error " Unable to identify distribution repository for ${ID} . Please, report to https://forum.crystal-lang.org/c/help-support/11"
58
57
exit 1
59
58
fi
60
59
}
61
60
62
61
_discover_distro_repo () {
63
- source /etc/os-release
62
+ if [[ -r /etc/os-release ]]; then
63
+ source /etc/os-release
64
+ elif [[ -r /usr/lib/os-release ]]; then
65
+ source /usr/lib/os-release
66
+ else
67
+ _error " Unable to identify distribution. Please, report to https://forum.crystal-lang.org/c/help-support/11"
68
+ exit 1
69
+ fi
70
+
64
71
case " $ID " in
65
72
debian)
66
73
if [[ -z " ${VERSION_ID: +} " ]]; then
You can’t perform that action at this time.
0 commit comments