fix suddenly malfunctioning dupe function in LF
This commit is contained in:
parent
74be8750bb
commit
532db612b1
|
@ -150,7 +150,7 @@ cmd paste &{{
|
|||
|
||||
cmd dupe %{{
|
||||
for file in $fx; do
|
||||
find "$PWD" "$file" | grep -oP '(?<=.\.~)\d+(?=~$)' | sort -n | tail -1 | (
|
||||
find "$PWD" "$file" -maxdepth 0 | grep -oP '(?<=.\.~)\d+(?=~$)' | sort -n | tail -1 | (
|
||||
ext=$(($(cat /dev/stdin)+1))
|
||||
filedest="$(echo "$file" | sed 's/.~[[:digit:]]*~$//').~$ext~"
|
||||
cp -r "$file" "$filedest"
|
||||
|
|
Loading…
Reference in New Issue