alias
This commit is contained in:
parent
ba4087a82b
commit
89fcd05228
3 changed files with 11 additions and 2 deletions
|
@ -86,3 +86,11 @@ firmador_libre() {
|
||||||
(cd "$DIR" && curl -O "$FIRMADOR")
|
(cd "$DIR" && curl -O "$FIRMADOR")
|
||||||
# Add DESKTOP entry
|
# Add DESKTOP entry
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_menu() {
|
||||||
|
if [ -z "$MENU" ] ; then
|
||||||
|
command -v zenity > /dev/null && MENU="zenity" && return 0
|
||||||
|
command -v kdialog > /dev/null && MENU="kdialog" && return 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ echo_debug() { # DEBUG
|
||||||
printf '\033[1mDEBUG: %s...\033[0m\n' "$1" # DEBUG
|
printf '\033[1mDEBUG: %s...\033[0m\n' "$1" # DEBUG
|
||||||
} # DEBUG
|
} # DEBUG
|
||||||
|
|
||||||
alias tsudo 'printf "%s" "$SUDO_PASSWORD" | sudo -Skp ""'
|
alias tsudo='printf "%s" "$SUDO_PASSWORD" | sudo -Skp ""'
|
||||||
|
|
||||||
debian_install_certs() {
|
debian_install_certs() {
|
||||||
# Source: https://fran.cr/instalar-firma-digital-costa-rica-gnu-linux-ubuntu-debian/
|
# Source: https://fran.cr/instalar-firma-digital-costa-rica-gnu-linux-ubuntu-debian/
|
||||||
|
|
|
@ -7,8 +7,9 @@
|
||||||
# main
|
# main
|
||||||
set_lang
|
set_lang
|
||||||
set_version
|
set_version
|
||||||
|
set_menu
|
||||||
|
|
||||||
if command -v zenity > /dev/null ; then
|
if [ "$MENU" = "zenity" ] ; then
|
||||||
echo_debug "Iniciando zenity" # DEBUG
|
echo_debug "Iniciando zenity" # DEBUG
|
||||||
MENU="zenity"
|
MENU="zenity"
|
||||||
zenity --title "$TITLE" --text "$PROMPT_WELCOME" --info
|
zenity --title "$TITLE" --text "$PROMPT_WELCOME" --info
|
||||||
|
|
Loading…
Reference in a new issue