From 04f7bd78842d2362cad9a9be367d53ffba7ef88b Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Wed, 29 Dec 2021 21:49:27 +0100 Subject: [PATCH] Make vfio.sh sh compatible. --- scripts/.local/bin/vfio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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