From 1767cf7997bb3ff3ef4171b105799077756eca02 Mon Sep 17 00:00:00 2001 From: RPI News <44128563+mobilegmYT@users.noreply.github.com> Date: Wed, 7 Jul 2021 11:50:55 -0600 Subject: [PATCH] Make chntpw use sudo since binary is in sbin --- convert.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert.sh b/convert.sh index b28ffca..f1b7900 100755 --- a/convert.sh +++ b/convert.sh @@ -294,7 +294,7 @@ fi if ! which cabextract >/dev/null 2>&1 \ || ! which wimlib-imagex >/dev/null 2>&1 \ -|| ! which chntpw >/dev/null 2>&1 \ +|| ! sudo which chntpw >/dev/null 2>&1 \ || ! which genisoimage >/dev/null 2>&1 \ && ! which mkisofs >/dev/null 2>&1; then echo "One of required applications is not installed." @@ -466,7 +466,7 @@ nv 1 InstRoot ed InstRoot X:\$Windows.~bt q -y' | chntpw -e "$tempDir/SOFTWARE" >/dev/null +y' | sudo chntpw -e "$tempDir/SOFTWARE" >/dev/null wimlib-imagex update ISODIR/sources/boot.wim 1 \ --command "add $tempDir/SOFTWARE /Windows/System32/config/SOFTWARE" >/dev/null