git clone git://git.kocotian.pl/karbs.git
Log | Files | Refs | README | LICENSE

commit 49ce0f2bf64fc5101d5d42a46493350072f5fad6
parent fc820d7d12cf90ae8b4ed9c88419f999a0ce0004
Author: Luke <luke@lukesmith.xyz>
Date:   Wed,  4 Oct 2017 17:26:34 -0700

Warning messages added

Mdont_run_me.sh | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/dont_run_me.sh b/dont_run_me.sh @@ -5,6 +5,17 @@ #DO NOT RUN THIS YOURSELF because Step 1 is it reformatting /dev/sda WITHOUT confirmation, #which means RIP in peace qq your data unless you've already backed up all of your drive. +pacman -S --noconfirm dialog || (echo "Error at script start: Are you sure you're running this as the root user? Are you sure you have an internet connection?" && exit) +RED='\033[0;31m' +BLUE='\033[0;34m' +NC='\033[0m' + +#error() { dialog --title "Error!" --msgbox "We've run into a fatal-ish error. Check the LARBS.log file for more information" 10 60 && clear && exit ;} + +dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Have you seen this file's filename? It's DONT_RUN_ME.SH!\n\nOnly run this script if you're a big-brane who doesn't mind deleting your entire /dev/sda drive.\n\nThis script is only really for me so I can autoinstall Arch.\n\nt. Luke" 15 60 || exit + +dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Do you think I'm meming? Only select yes to DELET your entire /dev/sda and reinstall Arch.\n\nTo stop this script, press no." 10 60 || exit + timedatectl set-ntp true cat <<EOF | fdisk /dev/sda