Skip to content

Commit

Permalink
Fix clasp clone with no scriptId given (google#191)
Browse files Browse the repository at this point in the history
Signed-off-by: campionfellin <[email protected]>
  • Loading branch information
campionfellin authored and grant committed May 28, 2018
1 parent 38b2773 commit 60393ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60393ef

Please sign in to comment.