~tyil/rakudo-star

98073bb6ed867d1aaf4942832d327faa2ba819d9 — Patrick Spek 14 days ago 27cb979 master
Discover system arch in a subshell
1 files changed, 6 insertions(+), 1 deletions(-)

M lib/main.bash
M lib/main.bash => lib/main.bash +6 -1
@@ 230,7 230,12 @@ discover_system_arch() {
discover_system_distro() {
	if [[ -f /etc/os-release ]]
	then
		printf "%s" "$(source /etc/os-release && printf "%s" "$NAME" | awk '{print tolower($0)}' | sed 's@[/+ ]@_@g')"
		(
			source /etc/os-release
			printf "%s" "$NAME" \
				| awk '{print tolower($0)}' \
				| sed 's@[/+ ]@_@g'
		)
		return
	fi