From ea65aef097b450d8ea8fef0a5ec03139ed8828a2 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Thu, 3 Oct 2024 22:40:22 -0300 Subject: [PATCH] Only show dialog auto-close message on Magisk where it's needed --- module/action.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/action.sh b/module/action.sh index ecfd91f..89cf0a6 100644 --- a/module/action.sh +++ b/module/action.sh @@ -7,5 +7,9 @@ unset ASH_STANDALONE sh $MODPATH/autopif.sh || exit 1 echo -e "\nDone!" -echo -e "\nClosing dialog in 20 seconds ..." -sleep 20 + +# warn since Magisk's implementation automatically closes if successful +if [ "$KSU" != "true" -a "$APATCH" != "true" ]; then + echo -e "\nClosing dialog in 20 seconds ..." + sleep 20 +fi