Outthentic
view release on metacpan or search on metacpan
lib/Outthentic/Story.pm view on Meta::CPAN
sub dump_os {
return $^O if $^O =~ 'MSWin';
my $cmd = <<'HERE';
#! /usr/bin/env sh
# Find out the target OS
if [ -s /etc/os-release ]; then
# freedesktop.org and systemd
. /etc/os-release
OS=$NAME
VER=$VERSION_ID
elif lsb_release -h >/dev/null 2>&1; then
# linuxbase.org
OS=$(lsb_release -si)
VER=$(lsb_release -sr)
elif [ -s /etc/lsb-release ]; then
# For some versions of Debian/Ubuntu without lsb_release command
. /etc/lsb-release
( run in 0.658 second using v1.01-cache-2.11-cpan-299005ec8e3 )