Fix error when /proc/version is missing

pull/229/head
Tim Byrne 4 years ago
parent 45f1d93193
commit 79e93e38bc
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12

@ -1535,7 +1535,9 @@ function configure_repo() {
function set_operating_system() {
if [[ "$(<"$PROC_VERSION")" =~ [Mm]icrosoft ]]; then
local proc_version
proc_version=$(cat "$PROC_VERSION" 2>/dev/null)
if [[ "$proc_version" =~ [Mm]icrosoft ]]; then
OPERATING_SYSTEM="WSL"
else
OPERATING_SYSTEM=$(uname -s)

Loading…
Cancel
Save