summaryrefslogtreecommitdiffstats
path: root/misc/scripts
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-13 11:30:41 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-13 11:30:41 +0200
commit4bce45b74617f66cb0d44ddf763445835a50634f (patch)
treeefe6bd770c18067f65a80c08058cee57dd121907 /misc/scripts
parentdae51097c504ccd8ab8a4b82b10c900df6bf388a (diff)
parentd3d4b2e25ec43c2a248c9cc5ea0046fa7dc15987 (diff)
downloadredot-engine-4bce45b74617f66cb0d44ddf763445835a50634f.tar.gz
Merge pull request #90588 from ajreckof/Fix-infinite-while-loop-on-empty-added-file
Fix infinite while loop on empty added file.
Diffstat (limited to 'misc/scripts')
-rwxr-xr-xmisc/scripts/copyright_headers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/scripts/copyright_headers.py b/misc/scripts/copyright_headers.py
index 169795921f..2b1201b3c0 100755
--- a/misc/scripts/copyright_headers.py
+++ b/misc/scripts/copyright_headers.py
@@ -73,7 +73,7 @@ for f in sys.argv[1:]:
line = fileread.readline()
header_done = False
- while line.strip() == "": # Skip empty lines at the top
+ while line.strip() == "" and line != "": # Skip empty lines at the top
line = fileread.readline()
if line.find("/**********") == -1: # Godot header starts this way