Skip to content

Commit f0cdbff

Browse files
committed
refactor: replace ls with find -exec ls (SC2012)
Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
1 parent 12b7cc9 commit f0cdbff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom/aliases.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6253,7 +6253,7 @@ elif command ls --color=auto --time-style=+%Y-%m-%d\ %l:%M:%S\ %P >/dev/null 2>&
62536253
else
62546254
if
62556255
test "$(
6256-
ls -G --color=always -- "${HOME%/}" 2>/dev/null |
6256+
find -- "${HOME%/}" -prune -exec sh -c -- 'ls -G --color=always "${@-}"' _ {} + |
62576257
od
62586258
)" = "$(
62596259
command ls -G --color=always -- "${HOME%/}" 2>/dev/null |

0 commit comments

Comments
 (0)