#!/bin/bash if type -t wevtuil &> /dev/null then OS=MSWin elif type -t scutil &> /dev/null then OS=macOS else OS=Linux fi echo $OS