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 @@ -339,15 +339,15 @@ case "${COMMAND}" in
339
339
--list)
340
340
if [ ${GLOBAL} -eq 1 ]; then
341
341
RESULT=1
342
- if git config --global --get-regex --type path " ^secrets\.providers$" ; then RESULT=0; fi
343
- if git config --global --get-regex " ^secrets\.patterns$" ; then RESULT=0; fi
344
- if git config --global --get-regex " ^secrets\.allowed$" ; then RESULT=0; fi
342
+ git config --global --get-regex --type path " ^secrets\.providers$" && RESULT=0
343
+ git config --global --get-regex " ^secrets\.patterns$" && RESULT=0
344
+ git config --global --get-regex " ^secrets\.allowed$" && RESULT=0
345
345
[ $RESULT -eq 0 ]
346
346
else
347
347
RESULT=1
348
- if git config --get-regex --type path " ^secrets\.providers$" ; then RESULT=0; fi
349
- if git config --get-regex " ^secrets\.patterns$" ; then RESULT=0; fi
350
- if git config --get-regex " ^secrets\.allowed$" ; then RESULT=0; fi
348
+ git config --get-regex --type path " ^secrets\.providers$" && RESULT=0
349
+ git config --get-regex " ^secrets\.patterns$" && RESULT=0
350
+ git config --get-regex " ^secrets\.allowed$" && RESULT=0
351
351
[ $RESULT -eq 0 ]
352
352
fi
353
353
;;
You can’t perform that action at this time.
0 commit comments