/status: fix blank distro version field.

The `source` command is a bash-ism and doesn't work in a strictly POSIX
shell like dash, which is the /bin/sh on Debian/Ubuntu. Use `.` instead.

https://en.wikipedia.org/wiki/Dot_(command)
This commit is contained in:
evazion
2020-12-19 22:46:40 -06:00
parent a129eb4251
commit 9de7a07af7

View File

@@ -46,7 +46,7 @@ class ServerStatus
end
def distro_version
`source /etc/os-release; echo "$NAME $VERSION"`.chomp
`. /etc/os-release; echo "$NAME $VERSION"`.chomp
end
def libvips_version