sawaiz/.dotfiles

Change install script root check to posix compatible

Closed this issue · 1 comments

#Check if running as root
if [[ $(id -u) -ne 0 ]]; then
  echo "Please run as root"
  exit
fi

Also add #!/bin/bash to the top. Completely missed that somehow.