We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1adae1a commit b027b12Copy full SHA for b027b12
bin/cocos
@@ -1,7 +1,7 @@
1
-#!/bin/sh
+#!/bin/bash -l
2
3
COCOS_CONSOLE_BIN_DIRECTORY=$(dirname "$0")
4
COCOS_CONSOLE_BIN_DIRECTORY=$(cd "$COCOS_CONSOLE_BIN_DIRECTORY" && pwd -P)
5
6
-exec python "$COCOS_CONSOLE_BIN_DIRECTORY/cocos.py" "$@"
+python "$COCOS_CONSOLE_BIN_DIRECTORY/cocos.py" "$@"
7
bin/cocos.py
@@ -576,7 +576,7 @@ def parse_args(self, argv):
576
if args.listplatforms and self._project is not None:
577
platforms = cocos_project.Platforms(self._project, args.platform, args.proj_dir)
578
p = platforms.get_available_platforms().keys()
579
- print('{' + json.dumps(p) + '}')
+ print('{"platforms":' + json.dumps(p) + '}')
580
sys.exit(0)
581
582
self.init(args)
0 commit comments