From fb069630dec09584ab457eba996e423b55d72ecb Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Mon, 12 Apr 2021 11:40:36 +0300 Subject: [PATCH] Fixed banner --- arch/stage2.sh | 1 + artix/stage2.sh | 1 + yaass.sh | 23 ++++++++++++++--------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/arch/stage2.sh b/arch/stage2.sh index 360e4f5..749c406 100755 --- a/arch/stage2.sh +++ b/arch/stage2.sh @@ -37,6 +37,7 @@ prompt(){ 1>&2 printf "[\e[35mPROMPT\e[0m]: %s" "$1" read -r ans printf "%s" "$ans" + printf "\n" } banner(){ diff --git a/artix/stage2.sh b/artix/stage2.sh index c1f364c..86e758d 100755 --- a/artix/stage2.sh +++ b/artix/stage2.sh @@ -37,6 +37,7 @@ prompt(){ 1>&2 printf "[\e[35mPROMPT\e[0m]: %s" "$1" read -r ans printf "%s" "$ans" + printf "\n" } banner(){ diff --git a/yaass.sh b/yaass.sh index d2acdba..369130b 100755 --- a/yaass.sh +++ b/yaass.sh @@ -37,6 +37,7 @@ prompt(){ 1>&2 printf "[\e[35mPROMPT\e[0m]: %s" "$1" read -r ans printf "%s" "$ans" + printf "\n" } install_deps(){ @@ -45,17 +46,18 @@ install_deps(){ } banner(){ - 1>&2 printf "${CYAN} -dP dP .d888888 .d888888 .d88888b .d88888b -Y8. .8P d8' 88 d8' 88 88. \"' 88. \"' - Y8aa8P 88aaaaa88a 88aaaaa88a \`Y88888b. \`Y88888b. - 88 88 88 88 88 \`8b \`8b - 88 88 88 88 88 d8' .8P d8' .8P - dP 88 88 88 88 Y88888P Y88888P - ${NC}" - 1>&2 printf " ${PURPLE}Yeet's Automated Arch Setup Script${NC}" + printf "${CYAN}" + printf "dP dP .d888888 .d888888 .d88888b .d88888b\n" + printf "Y8. .8P d8' 88 d8' 88 88. 88. \n" + printf " Y8aa8P 88aaaaa88 88aaaaa88a \`Y88888b. \`Y88888b.\n" + printf " 88 88 88 88 88 \`8b \`8b\n" + printf " 88 88 88 88 88 d8' .8P d8' .8P\n" + printf " dP 88 88 88 88 Y88888P Y88888P\n" + printf "${NC}" + printf " ${PURPLE}Yeet's Automated Arch Setup Script${NC}" } + help(){ 1>&2 printf" ${GREEN} Usage:${NC}\n @@ -67,6 +69,8 @@ ${ORANGE}Author:${NC} Yigit Colakoglu aka. ${BLUE}<===8 Fr1nge 8===>${NC}\n" os="" +banner + while [[ $# -gt 0 ]] do key="$1" @@ -277,3 +281,4 @@ if [ "$os" = "arch" ];then else tmux new-session -s "artix-setup" "artix-chroot /mnt/sys /install/stage2.sh \"$encryption_param\" \"$boot\" \"$root\" \"$swap\" \"$home\"" || artix-chroot /mnt/sys /install/stage2.sh "$encryption_param" "$boot" "$root" "$swap" "$home" fi +