diff --git a/command/install_scripts.py b/command/install_scripts.py
index <HASH>..<HASH> 100644
--- a/command/install_scripts.py
+++ b/command/install_scripts.py
@@ -50,7 +50,7 @@ class install_scripts (Command):
                 if self.dry_run:
                     self.announce("changing mode of %s" % file)
                 else:
-                    mode = (os.stat(file)[ST_MODE]) | 0111
+                    mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
                     self.announce("changing mode of %s to %o" % (file, mode))
                     os.chmod(file, mode)
Restrict the mode to the lowest four octal positions; higher positions
   contain the type of the file (regular file, socket, link, &c.).
   This means that install_scripts will now print
   "changing mode of <file> to <I>" instead of "... to <I>".

<I> bugfix candidate, I suppose, though this isn't actually fixing a bug.