From bb27ee3b6587b43936262ffc4a88579b71a5ad65 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Fri, 20 May 2022 05:48:03 -0500 Subject: [PATCH] Make warning visible. --- tools/aws-grub-setup.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/aws-grub-setup.sh b/tools/aws-grub-setup.sh index 14c2c24..c5bf73b 100644 --- a/tools/aws-grub-setup.sh +++ b/tools/aws-grub-setup.sh @@ -3,12 +3,6 @@ # SwITNet Ltd © - 2022, https://switnet.net/ # GPLv3 or later. -#### -# NOTE: Only use this script if you know what you are doing. -# Under your own risk. -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY. -#### wait_seconds() { secs=$(($1)) while [ $secs -gt 0 ]; do @@ -18,6 +12,13 @@ while [ $secs -gt 0 ]; do done } +echo "#### +# NOTE: Only use this script if you know what you are doing. +# Under your own risk. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY. +####" + # Check if user is root if [ "$UID" != 0 ]; then echo You need to run this script as root or sudo rights!