Fix extension not being removed from files in list-files operation

This commit is contained in:
zawwz 2020-11-27 16:33:01 +01:00
parent 6f5b4f1dd6
commit 0780beb50d

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
list_files() { list_files() {
_cmd_ "cd '$datapath' 2>/dev/null && find . -maxdepth 1 -type f -regex '.*$ZPASS_EXTENSION\$'" | sed 's/$(escape_chars "$ZPASS_EXTENSION")\$//g; s|.*/||g' _cmd_ "cd '$datapath' 2>/dev/null && find . -maxdepth 1 -type f -regex '.*$ZPASS_EXTENSION\$'" | sed "s/$(escape_chars "$ZPASS_EXTENSION")\$//g; s|.*/||g"
} }
remove_files() remove_files()