diff options
author | Derek Bailey <derekbailey@google.com> | 2020-02-27 12:59:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 12:59:43 -0800 |
commit | c9a30c9ca28a6396455dd8be479f5a5edb412e62 (patch) | |
tree | 5328025c475b4110b8b221cbbecfe03a952abae0 /reflection | |
parent | 8c02d17bea5def5b7006a7290a9f111433d0ab19 (diff) | |
download | flatbuffers-c9a30c9ca28a6396455dd8be479f5a5edb412e62.tar.gz flatbuffers-c9a30c9ca28a6396455dd8be479f5a5edb412e62.tar.bz2 flatbuffers-c9a30c9ca28a6396455dd8be479f5a5edb412e62.zip |
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)
Diffstat (limited to 'reflection')
-rwxr-xr-x | reflection/generate_code.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/reflection/generate_code.sh b/reflection/generate_code.sh index f0405d5c..694baa2d 100755 --- a/reflection/generate_code.sh +++ b/reflection/generate_code.sh @@ -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
\ No newline at end of file +fi |