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:
Derek Bailey
2020-02-27 12:59:44 -08:00
committed by GitHub
parent 8c02d17bea
commit c9a30c9ca2

View File

@@ -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