parent
ecc2f53254
commit
19e77a83f6
2 changed files with 18 additions and 15 deletions
15
sh/main.sh
15
sh/main.sh
|
@ -39,13 +39,14 @@ rwx_main_path="${rwx_main_root}/${rwx_main_file}"
|
|||
#| sort
|
||||
rwx_main_find() {
|
||||
local root="${1}"
|
||||
find \
|
||||
"${root}" \
|
||||
-name "*.${RWX_MAIN_EXTENSION}" \
|
||||
-type "f" \
|
||||
-printf "%P\n" |
|
||||
sed "s|\\.[^.]*\$||" |
|
||||
sort
|
||||
[ -d "${root}" ] &&
|
||||
find \
|
||||
"${root}" \
|
||||
-name "*.${RWX_MAIN_EXTENSION}" \
|
||||
-type "f" \
|
||||
-printf "%P\n" |
|
||||
sed "s|\\.[^.]*\$||" |
|
||||
sort
|
||||
}
|
||||
|
||||
# ╭──────┬──────╮
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue