Browse Source

Make sure karen is run as root

power-cycle
Luke Childs 5 years ago
parent
commit
c605232a28
  1. 9
      karen

9
karen

@ -12,8 +12,17 @@ check_dependencies () {
done
}
check_root () {
if [[ $UID != 0 ]]; then
echo "This script must be run as root"
exit 1
fi
}
check_dependencies fswatch readlink dirname
check_root
if [[ -n "$1" ]]; then
root_dir="$(readlink -f $1)"
else

Loading…
Cancel
Save