mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 13:34:13 +00:00
Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. (#5777)
This commit is contained in:
@@ -23,8 +23,9 @@ newFile="$tempDir/reflection_generated.h"
|
|||||||
|
|
||||||
if [ -f "$newFile" ]; then
|
if [ -f "$newFile" ]; then
|
||||||
if ! cmp -s "$originalFile" "$newFile"; then
|
if ! cmp -s "$originalFile" "$newFile"; then
|
||||||
mv $newFile $original
|
mv $newFile $originalFile
|
||||||
|
else
|
||||||
|
rm $newFile
|
||||||
fi
|
fi
|
||||||
rm $newFile
|
|
||||||
rmdir $tempDir
|
rmdir $tempDir
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user