Add printLogo()
This commit is contained in:
parent
8ef9eb18ef
commit
717481684c
24
install.sh
24
install.sh
|
@ -574,6 +574,23 @@ usage: ${0##*/} [command]
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printLogo() {
|
||||||
|
tput bold
|
||||||
|
tput setaf 4
|
||||||
|
cat << END
|
||||||
|
,, ,,
|
||||||
|
\`7MM db
|
||||||
|
MM
|
||||||
|
,p6"bo ,6"Yb. MM ,pP"Ybd ,6"Yb. \`7MM ,pP"Ybd
|
||||||
|
6M' OO 8) MM MM 8I \`" 8) MM MM 8I \`"
|
||||||
|
8M ,pm9MM MM \`YMMMa. ,pm9MM MM \`YMMMa.
|
||||||
|
YM. , 8M MM MM L. I8 8M MM MM L. I8
|
||||||
|
YMbmd' \`Moo9^Yo JMML M9mmmP' \`Moo9^Yo JMML M9mmmP'
|
||||||
|
======================================================
|
||||||
|
END
|
||||||
|
printf '\n\n\n%s\n' "Please wait..."
|
||||||
|
}
|
||||||
|
|
||||||
runScript() {
|
runScript() {
|
||||||
debugFlag=false; debugFlagToFile=false; debugFlagToStdout=false
|
debugFlag=false; debugFlagToFile=false; debugFlagToStdout=false
|
||||||
while getopts ':hdfs' flag; do
|
while getopts ':hdfs' flag; do
|
||||||
|
@ -586,8 +603,8 @@ runScript() {
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
clear
|
||||||
if [ -d "$HOME/Documents" ]; then
|
if [ -d "$HOME/Documents" ]; then
|
||||||
clear
|
|
||||||
dialog --title "calsais" --msgbox "\nNow, we will finish the installation. Press OK and wait." 7 60
|
dialog --title "calsais" --msgbox "\nNow, we will finish the installation. Press OK and wait." 7 60
|
||||||
getDotfiles
|
getDotfiles
|
||||||
dialog --title "calsais" --msgbox "\nAll done!" 7 15
|
dialog --title "calsais" --msgbox "\nAll done!" 7 15
|
||||||
|
@ -621,11 +638,11 @@ runScript() {
|
||||||
checkForSystemdUnit "systemd units" "graphical.target"
|
checkForSystemdUnit "systemd units" "graphical.target"
|
||||||
systemctl --no-block start reflector.service
|
systemctl --no-block start reflector.service
|
||||||
welcomeMsg="Welcome to calsais!"
|
welcomeMsg="Welcome to calsais!"
|
||||||
echo "Please wait..."
|
printLogo
|
||||||
pacman -Sy --needed --noconfirm dialog 2>&1 | debug
|
pacman -Sy --needed --noconfirm dialog 2>&1 | debug
|
||||||
|
tput reset
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
|
||||||
trap 'printAndExit "Received SIGINT signal."' INT
|
trap 'printAndExit "Received SIGINT signal."' INT
|
||||||
calcAndRun dialog --title "calsais" --msgbox "\"\n${welcomeMsg}\"" 7 WIDTH
|
calcAndRun dialog --title "calsais" --msgbox "\"\n${welcomeMsg}\"" 7 WIDTH
|
||||||
|
|
||||||
|
@ -639,3 +656,4 @@ runScript() {
|
||||||
}
|
}
|
||||||
|
|
||||||
runScript "$@"
|
runScript "$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue