Little Appearance Changes

variable Header added to script .
Simple Text Logo Made using figlet tool .
text "WARNING: this program will delete all existing data on your drive!" is changed
so it makes more Attention now (color changed to Red and get Blinking now)

thanks for develop it ValdikSS :) 👍
This commit is contained in:
hashemim66110 2022-06-24 17:32:19 +04:30 committed by GitHub
parent 9f855faabd
commit 5aab680e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,21 @@ shopt -s nocasematch # for "if labeltype"
export LANG=C.utf8 export LANG=C.utf8
Header='
| __ _____ _ _ ____ _ _ ____ ____ |
| \ \ / /_ _| \ | | |___ \ | | | / ___|| __ ) |
| \ \ /\ / / | || \| | __) | | | | \___ \| _ \ |
| \ V V / | || |\ | / __/ | |_| |___) | |_) | |
| \_/\_/ |___|_| \_(_) |_____| \___/|____/|____/ |
========================================================
. Windows 7+ ISO to Flash Drive burning utility .'
bold="$(tput bold)" bold="$(tput bold)"
normal="$(tput sgr0)" normal="$(tput sgr0)"
blink="$(tput blink)"
red="$(tput setaf 1)"
smso="$(tput smso)"
rmso="$(tput rmso)"
scriptpath="$(readlink -f -- "$0")" scriptpath="$(readlink -f -- "$0")"
dirpath="$(dirname "$scriptpath")" dirpath="$(dirname "$scriptpath")"
@ -181,8 +194,8 @@ function sigint_handler() {
if [[ ! "$2" ]]; if [[ ! "$2" ]];
then then
echo "${bold}Windows 7/8/8.1/10/11 ISO to Flash Drive burning utility" echo "${bold}${smso}$Header${rmso}"
echo "WARNING: this program will delete all existing data on your drive!${normal}" echo "${blink}${red}WARNING: this program will delete all existing data on your drive!${normal}"
echo echo
echo "$(basename "$0")" "<device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]" echo "$(basename "$0")" "<device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]"
echo echo