File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -340,15 +340,15 @@ case "${COMMAND}" in
340
340
--list)
341
341
if [ ${GLOBAL} -eq 1 ]; then
342
342
RESULT=1
343
- if git config --global --get-regex --type path " ^secrets\.providers$" ; then RESULT=0; fi
344
- if git config --global --get-regex " ^secrets\.patterns$" ; then RESULT=0; fi
345
- if git config --global --get-regex " ^secrets\.allowed$" ; then RESULT=0; fi
343
+ git config --global --get-regex --type path " ^secrets\.providers$" && RESULT=0
344
+ git config --global --get-regex " ^secrets\.patterns$" && RESULT=0
345
+ git config --global --get-regex " ^secrets\.allowed$" && RESULT=0
346
346
[ $RESULT -eq 0 ]
347
347
else
348
348
RESULT=1
349
- if git config --get-regex --type path " ^secrets\.providers$" ; then RESULT=0; fi
350
- if git config --get-regex " ^secrets\.patterns$" ; then RESULT=0; fi
351
- if git config --get-regex " ^secrets\.allowed$" ; then RESULT=0; fi
349
+ git config --get-regex --type path " ^secrets\.providers$" && RESULT=0
350
+ git config --get-regex " ^secrets\.patterns$" && RESULT=0
351
+ git config --get-regex " ^secrets\.allowed$" && RESULT=0
352
352
[ $RESULT -eq 0 ]
353
353
fi
354
354
;;
You can’t perform that action at this time.
0 commit comments