From 7344015c2576065ae47586e4f7db5d40c27c16a8 Mon Sep 17 00:00:00 2001 From: "yons.kim" Date: Wed, 20 Jan 2016 20:00:46 +0900 Subject: [PATCH] Change fs.writeFile mode from 0o775 to '0775' Old node which has the version such as 0.10.x doesn't support the file mode like '0oXXX'. So, To support old and new node version, modify the code from 0o775 to '0775'. (just 0775 (octal literal) is prohibitted in strict mode, node) Change-Id: I7ac9ac4b62cc9cd93dd1d9e6e31d2ef0ddd80346 --- cli/lib/create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/lib/create.js b/cli/lib/create.js index db422fb..4d9b104 100755 --- a/cli/lib/create.js +++ b/cli/lib/create.js @@ -195,7 +195,7 @@ parser.get('package').pkg_id + '.' + appId); return Q.denodeify(fs.writeFile)(binPath, binContent, - { mode: 0o775 }); + { mode: '0775' }); }); }) @@ -222,7 +222,7 @@ path.join(path.join(parser.get('exec_path'), 'res', appId), 'index.js'); return Q.denodeify(fs.writeFile)(indexPath, indexContent, - { mode: 0o775 }); + { mode: '0775' }); }); }) -- 2.7.4