You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/11/11 12:10:08 UTC

[cordova-cli] branch master updated: refactor(create): do not expand ~ to $HOME anymore (#490)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new 11ce340  refactor(create): do not expand ~ to $HOME anymore (#490)
11ce340 is described below

commit 11ce340a47719060b57bcfe18852b20f21a69c65
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Mon Nov 11 13:09:59 2019 +0100

    refactor(create): do not expand ~ to $HOME anymore (#490)
    
    Expanding ~ is a shell feature and should not be done by us.
---
 src/cli.js | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/cli.js b/src/cli.js
index d5caea4..93d9208 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -481,10 +481,6 @@ function create ([_, dir, id, name], args) {
             );
         }
 
-        // Resolve tilda
-        // TODO: move to create and use sindresorhus/untildify
-        if (customWww.substr(0, 1) === '~') { customWww = path.join(process.env.HOME, customWww.substr(1)); }
-
         // Template config
         cfg.lib = {};
         cfg.lib.www = {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org