diff --git a/update_glslang_sources.py b/update_glslang_sources.py
index a1cc0380a778f44e66fae3e123f23a8e51bc14c9..65be2f6a2ce52aea9f1f23d32db4b8138b79ade5 100755
--- a/update_glslang_sources.py
+++ b/update_glslang_sources.py
@@ -96,7 +96,7 @@ class GoodCommit(object):
     def AddRemote(self):
         """Add the remote 'known-good' if it does not exist."""
         remotes = command_output(['git', 'remote'], self.subdir).splitlines()
-        if 'known-good' not in remotes:
+        if b'known-good' not in remotes:
             command_output(['git', 'remote', 'add', 'known-good', self.GetUrl()], self.subdir)
 
     def HasCommit(self):