Enviado em 24/07/2019 - 09:11h
Bom dia/tarde/noite/madrugada!
OSChooseOptions=()
local OSServerCount=0
# Save the old Internal Field Separator in a variable
OIFS=$IFS
# and set the new one to newline
IFS=$'\n'
# Put the DNS Servers into an array
for OS in ${OSTYPE}
do
TYPE="$(cut -d':' -f2 <<< "${OS}")"
OSChooseOptions[OSServerCount]="${TYPE}"
(( OSServerCount=OSServerCount+1 ))
OSChooseOptions[OSServerCount]=""
(( OSServerCount=OSServerCount+1 ))
done
OSChooseOptions[OSServerCount]="Custom"
(( OSServerCount=OSServerCount+1 ))
OSChooseOptions[OSServerCount]=""
# Restore the IFS to what it was
IFS=${OIFS}
# In a whiptail dialog, show the options
OSchoices=$(whiptail --separate-output --menu "Selecione o Tipo de OS." ${r} ${c}$
"${OSChooseOptions[@]}" 2>&1 >/dev/tty) || \
# exit if Cancel is selected
{ printf " %bCancel was selected, exiting installer%b\\n" ; exit 1; }
DOOM clássico (quase) vanilla e um pouco melhorado
Mamãe, quero descompactar e também compactar arquivos no terminal!
Criando super poderes para o mkdir
Mudando Tema do Grub do Linux Mint
Warped Tentacles para Doom Clássico
Conheça a extensão Just Perfection para mudar várias opções do Gnome