cleanname does correct for each file

master
TiynGER 5 years ago
parent 650476e498
commit 902432d674

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

Loading…
Cancel
Save