slitaz-base-files diff rootfs/lib/libtaz.sh @ rev 343
fix ipinfo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 04 14:28:55 2020 +0000 (2020-10-04) |
parents | 69ad2183be35 |
children |
line diff
1.1 --- a/rootfs/lib/libtaz.sh Thu Mar 22 04:32:12 2018 +0200 1.2 +++ b/rootfs/lib/libtaz.sh Sun Oct 04 14:28:55 2020 +0000 1.3 @@ -200,7 +200,7 @@ 1.4 translate_query "$answer"; echo ' (auto)' 1.5 fi 1.6 # Return true/false to use in conditions 1.7 - [ "$answer" == "$(translate_query y)" -o "$answer" == "$(translate_query Y)" ] 1.8 + [ "$answer" = "$(translate_query y)" -o "$answer" = "$(translate_query Y)" ] 1.9 } 1.10 1.11 # Log activities 1.12 @@ -250,7 +250,7 @@ 1.13 saved_action='' 1.14 action() { 1.15 saved_action="$(_n "$@")" 1.16 - [ "$quiet" == 'yes' ] && return 1.17 + [ "$quiet" = 'yes' ] && return 1.18 local w c scol msg chars 1.19 # Translators: 'w' is the width the wider translated message ('[ Done ]' or '[ Failed ]') takes in a terminal; place here the number 1.20 w=$(_ 'w'); w=${w/w/10}