#!/bin/bash
#
# Sleep the machine

if [ $(uname -a | grep -ci Darwin) != 1 ]; then
  echo "Sorry, this script only works on macOS"
  exit 1
fi

sudo shutdown -s now
