Changeset - 15df3e02aa90
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2021-03-02 17:46:52
branko@majic.rs
Noticket: [TEMPLATE.sh.tpl] Fix a minor issue reported by shellcheck:

- Do not use $/${} on arithmetic variables (not needed).
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general) First comment
templates/TEMPLATE.sh.tpl
Show inline comments
 
@@ -66,7 +66,7 @@ EOF
 
# Set-up colours for message printing if we're not piping and terminal is
 
# capable of outputting the colors.
 
_color_terminal=$(tput colors 2>&1)
 
if [[ -t 1 ]] && (( ${_color_terminal} > 0 )); then
 
if [[ -t 1 ]] && (( _color_terminal > 0 )); then
 
    _text_bold=$(tput bold)
 
    _text_white=$(tput setaf 7)
 
    _text_blue=$(tput setaf 6)
 
@@ -123,5 +123,5 @@ while getopts "vh" opt; do
 
    esac
 
done
 
i=$OPTIND
 
shift $(($i-1))
 
shift $((i-1))
 

	
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now