(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)
Expected Behavior
DO NOT create a .clasp.json file when a clasp clone command fails for some reason, for example, invalid ScriptID or login. This means that if the issue is fixed, and the clone is run again, it will fail because there's already a .clasp.json file in the directory.
Actual Behavior
A .clasp.json file is created whenever a clasp clone command is run regardless of the success or failure of the output.
Steps to Reproduce the Problem
clasp login to any account
clasp clone with a wrong ScriptID
- Fix the ScriptID
clasp clone with the correct ScriptID
Specifications
- Node version (
node -v): 15.5.1
- Version (
clasp -v): 2.3.0
- OS (Mac/Linux/Windows): Ubuntu 20.04
Expected Behavior
DO NOT create a
.clasp.jsonfile when aclasp clonecommand fails for some reason, for example, invalid ScriptID or login. This means that if the issue is fixed, and the clone is run again, it will fail because there's already a.clasp.jsonfile in the directory.Actual Behavior
A
.clasp.jsonfile is created whenever aclasp clonecommand is run regardless of the success or failure of the output.Steps to Reproduce the Problem
clasp loginto any accountclasp clonewith a wrong ScriptIDclasp clonewith the correct ScriptIDSpecifications
node -v): 15.5.1clasp -v): 2.3.0