cleanname is now faster by moving files

master
TiynGER 5 years ago
parent 669898d901
commit 682f800274

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

Loading…
Cancel
Save