diff --git a/scripts/.local/bin/vfio.sh b/scripts/.local/bin/vfio.sh index c9ef043..ce67aeb 100755 --- a/scripts/.local/bin/vfio.sh +++ b/scripts/.local/bin/vfio.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh -if [ "$EUID" -ne 0 ]; then +if (( $(id -u) != 0 )); then echo "This script must be run as root. Quitting..." exit 1 fi