Skip to content

Commit

Permalink
Keep backups when moving old directory
Browse files Browse the repository at this point in the history
  • Loading branch information
HanabishiRecca committed Nov 10, 2022
1 parent af9e434 commit 78a0304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caches-manager
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ create_cache() {
fi
elif [ -e "${dir}" ]; then
echo -n "target exists, backing up... "
mv -fT "${dir}" "${dir}.bak"
mv -fT --backup=numbered "${dir}" "${dir}.bak"
fi

if ln -sfT "$1" "${dir}"; then
Expand Down

0 comments on commit 78a0304

Please sign in to comment.