cleanname is now faster by moving files

master
TiynGER 5 years ago
parent 902432d674
commit 3d07952e89

@ -10,7 +10,7 @@ do
else else
if [ -f "$oldname" ]; then if [ -f "$oldname" ]; then
echo "renaming file $oldname to $newname" echo "renaming file $oldname to $newname"
cp "$oldname" "$newname" && rm "$oldname"; mv "$oldname" "$newname";
elif [ -d "$oldname" ]; then elif [ -d "$oldname" ]; then
echo "renaming directory $oldname to $newname" echo "renaming directory $oldname to $newname"
cp -r "$oldname/." "$newname" && rm -r "$oldname"; cp -r "$oldname/." "$newname" && rm -r "$oldname";

Loading…
Cancel
Save