mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +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 ! cmp -s "$originalFile" "$newFile"; then
|
||||
mv $newFile $original
|
||||
mv $newFile $originalFile
|
||||
else
|
||||
rm $newFile
|
||||
fi
|
||||
rm $newFile
|
||||
rmdir $tempDir
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user