getIp 2.11.0

This commit is contained in:
kyodev 2018-03-04 06:59:00 +01:00
parent 58e86fe9b5
commit 61b8aa133d
2 changed files with 15 additions and 15 deletions

View File

@ -11,20 +11,20 @@ script="getIp"
# contributeurs: kyodev
#####
f__color(){ # 03/03/2018
f__color(){ # 01/03/2018
if type -p tput &>/dev/null && tput setaf 1 &>/dev/null; then
BLACK=$(tput setaf 0)
RED=$(tput setaf 1) # alerte
GREEN=$(tput setaf 2) # ok
YELLOW=$(tput setaf 3) # question
BLUE=$(tput setaf 4) # info
CYAN=$(tput setaf 6)
MAGENTA=$(tput setaf 5)
STD=$(tput sgr0) # retour "normal"
BOLD=$(tput bold)
ITAL=$(tput sitm)
SOUL=$(tput smul)
BLACK=$( tput setaf 0 )
RED=$( tput setaf 1 ) # alerte
GREEN=$( tput setaf 2 ) # ok
YELLOW=$( tput setaf 3 ) # question
BLUE=$( tput setaf 4 ) # info
CYAN=$( tput setaf 6 )
MAGENTA=$( tput setaf 5 )
STD=$( tput sgr0 ) # retour "normal"
BOLD=$( tput bold )
ITAL=$( tput sitm )
SOUL=$( tput smul )
else
YELLOW=$( echo -n "\033[0;33m" ) # ?
GREEN=$( echo -n "\033[0;32m" ) # ok

View File

@ -3,9 +3,9 @@
## getIp 2.11.0 03/03/2018
* synchro fscript_install, fscript_remove, fscript_update
* révision: f__color, f__sudo, f__wcv, figet_ip, prg_init
* cosmétique, obsolescence bash/ubuntu 16.04: f__dir, f__info, f__user, f__wget_test,
* synchro: fscript_install, fscript_remove, fscript_update
* synchro: f__color, f__dir, f__info, f__sudo, f__user, f__wcv, f__wget_test, figet_ip
* révision: prg_init
* fix: figet_ip_pub, ubuntu 16.04
## getIp 2.10.0 11/02/2018