mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
fix regex
This commit is contained in:
parent
e9097515ce
commit
1af6a0ab3d
@ -9,7 +9,7 @@ list() {
|
||||
for file in "$1"/*; do
|
||||
[ "$(head -1 "$file")" = "[Trash Info]" ] && \
|
||||
fpath=$(grep Path "$file" | cut -d '=' -f2) && \
|
||||
echo "$fpath" | grep -qP "^$2" && \
|
||||
echo "$fpath" | grep -qP "^$2/[^/]+$" && \
|
||||
printf "%s %s %s\n" \
|
||||
"$(basename "$file")" \
|
||||
"$fpath" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user