From 60393ef2f693f6f2cfa7b2b63cbbed1fa0f8438e Mon Sep 17 00:00:00 2001 From: Campion Fellin Date: Sun, 27 May 2018 17:55:43 -0700 Subject: [PATCH] Fix clasp clone with no scriptId given (#191) Signed-off-by: campionfellin --- index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.ts b/index.ts index f8af6426..0a5c01d5 100755 --- a/index.ts +++ b/index.ts @@ -311,6 +311,8 @@ commander message : 'Clone which script? ', choices : fileIds, }]).then((answers: any) => { + answers.scriptId = answers.scriptId.substring(answers.scriptId.lastIndexOf('(') + 1, + answers.scriptId.length - 1); checkIfOnline(); spinner.setSpinnerTitle(LOG.CLONING); saveProjectId(answers.scriptId);