Sha256: 92bc5e9672a3896841133a07042f34a3555dd7829416c3e14f6a7333fc82cd71

Contents?: true

Size: 551 Bytes

Versions: 28

Compression:

Stored size: 551 Bytes

Contents

#!/bin/sh -x

if [ `uname -r | egrep '(6.2-RELEASE|6.1-RELEASE|5.5-RELEASE|6.1-STABLE|5.4-RELEASE|6.0-RELEASE|5.3-RELEASE|4.10-RELEASE|4.11-RELEASE)'` ]; then 
  echo "freebsd"
elif [ `uname | egrep 'arwin'` ]; then
  echo "osx"
elif [ -f /etc/lsb-release ]; then
  echo "ubuntu"
elif [ -f /etc/redhat-release ]; then
	os[1]='fedora'
	os[2]='centos'
	os[3]='redhat'
  for i in `seq 1 3`; do
    if [ "$(egrep "${os[$i]}" /etc/redhat-release)" ]; then
      echo "${os[$i]}"
    fi
  done
elif [ -f /etc/debian_version ]; then
  echo "debian"
fi
exit 0

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
auser-poolparty-1.3.0 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.1 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.10 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.11 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.12 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.13 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.14 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.15 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.16 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.17 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.2 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.3 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.4 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.5 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.6 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.7 lib/provision/bootstrap_scripts/determine_os.sh
auser-poolparty-1.3.8 lib/provision/bootstrap_scripts/determine_os.sh
fairchild-poolparty-1.3.17 lib/provision/bootstrap_scripts/determine_os.sh
fairchild-poolparty-1.3.5 lib/provision/bootstrap_scripts/determine_os.sh
poolparty-1.3.15 lib/provision/bootstrap_scripts/determine_os.sh