File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ _ver_compare() {
48
48
49
49
re=${VER_ERE}
50
50
51
- [[ ${va} =~ ${re} ]] || fail " ${FUNCNAME} : invalid version: ${va} "
51
+ [[ ${va} =~ ${re} ]] || fail " ${FUNCNAME[0] } : invalid version: ${va} "
52
52
an=${BASH_REMATCH[1]}
53
53
al=${BASH_REMATCH[3]}
54
54
as=${BASH_REMATCH[4]}
55
55
ar=${BASH_REMATCH[7]}
56
56
57
- [[ ${vb} =~ ${re} ]] || fail " ${FUNCNAME} : invalid version: ${vb} "
57
+ [[ ${vb} =~ ${re} ]] || fail " ${FUNCNAME[0] } : invalid version: ${vb} "
58
58
bn=${BASH_REMATCH[1]}
59
59
bl=${BASH_REMATCH[3]}
60
60
bs=${BASH_REMATCH[4]}
@@ -136,14 +136,14 @@ ver_test() {
136
136
va=${PVR}
137
137
fi
138
138
139
- [[ $# -eq 2 ]] || fail " ${FUNCNAME} : bad number of arguments"
139
+ [[ $# -eq 2 ]] || fail " ${FUNCNAME[0] } : bad number of arguments"
140
140
141
141
op=${1}
142
142
vb=${2}
143
143
144
144
case ${op} in
145
145
-eq|-ne|-lt|-le|-gt|-ge) ;;
146
- * ) fail " ${FUNCNAME} : invalid operator: ${op} " ;;
146
+ * ) fail " ${FUNCNAME[0] } : invalid operator: ${op} " ;;
147
147
esac
148
148
149
149
_ver_compare " ${va} " " ${vb} "
@@ -171,7 +171,7 @@ function gentoo_ver_cmp_out() {
171
171
out_ref=0
172
172
_ver_compare " ${v1} " " ${v2} " || out_ref=${?}
173
173
case ${out_ref} in
174
- 1|2|3 )
174
+ " ${GV_LT} " | " ${GV_EQ} " | " ${GV_GT} " )
175
175
return 0
176
176
;;
177
177
* )
Original file line number Diff line number Diff line change @@ -2814,6 +2814,7 @@ function handle_gentoo_sync() {
2814
2814
local path in_ps category
2815
2815
if [[ " ${old_head} " != " ${new_head} " ]]; then
2816
2816
while read -r path; do
2817
+ # shellcheck disable=SC2153 # PORTAGE_STABLE_SUFFIX is not a misspelling
2817
2818
if [[ ${path} != " ${PORTAGE_STABLE_SUFFIX} /" * ]]; then
2818
2819
continue
2819
2820
fi
You can’t perform that action at this time.
0 commit comments