don't run as root

This commit is contained in:
Joel Beckmeyer 2021-02-03 17:01:13 -05:00
parent e47f2f6d91
commit e757865715

View File

@ -5,6 +5,9 @@ if [ ! -z "${2}" ]; then
elif [ -z "${1}" ]; then
echo "No file path provided"
exit 1
elif [ "$EUID" -eq 0 ]; then
echo "Cannot be run as root"
exit 1
fi
set -euo pipefail