skip when exists
This commit is contained in:
parent
0646638710
commit
09670b1acc
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@
|
|||
target="$dest/''${raw_date:0:4}/$raw_date"
|
||||
mkdir -p "$target"
|
||||
|
||||
[[ -e "$target/$name" ]] && continue
|
||||
|
||||
case $mode in
|
||||
move) mv "$file" "$target/$name" ;;
|
||||
link) ln "$file" "$target/$name" ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue