#!/bin/bash check_root() { [[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1) }