/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:
@@ -46,7 +46,7 @@ class ServerStatus
|
|||||||
end
|
end
|
||||||
|
|
||||||
def distro_version
|
def distro_version
|
||||||
`source /etc/os-release; echo "$NAME $VERSION"`.chomp
|
`. /etc/os-release; echo "$NAME $VERSION"`.chomp
|
||||||
end
|
end
|
||||||
|
|
||||||
def libvips_version
|
def libvips_version
|
||||||
|
|||||||
Reference in New Issue
Block a user