diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index d70dbed9e0c4f6fdf39f8f117f93441976a9c5c9..aa03780e192fbf95ec9a3a1dd9dd6f9672ef9d13 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -930,11 +930,13 @@ def construct(self):
             # top-level Info.plist is as generated by CMake
             Info_plist = self.dst_path_of("Info.plist")
 
+            toplevel_MacOS = self.dst_path_of("MacOS")
             # the one file in top-level MacOS directory is the trampoline to
             # our nested launcher_app
-            if self.is_rearranging():
+            if not self.is_rearranging():
+                trampoline = ""
+            else:
                 with self.prefix(dst="MacOS"):
-                    toplevel_MacOS = self.get_dst_prefix()
                     trampoline = self.put_in_file("""\
 #!/bin/bash
 open "%s" --args "$@"