fix suddenly malfunctioning dupe function in LF
This commit is contained in:
parent
74be8750bb
commit
532db612b1
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ cmd paste &{{
|
||||||
|
|
||||||
cmd dupe %{{
|
cmd dupe %{{
|
||||||
for file in $fx; do
|
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))
|
ext=$(($(cat /dev/stdin)+1))
|
||||||
filedest="$(echo "$file" | sed 's/.~[[:digit:]]*~$//').~$ext~"
|
filedest="$(echo "$file" | sed 's/.~[[:digit:]]*~$//').~$ext~"
|
||||||
cp -r "$file" "$filedest"
|
cp -r "$file" "$filedest"
|
||||||
|
|
Loading…
Add table
Reference in a new issue