remove eventual trailing '/' at the end of urls in import script (see #1453)
settings.remotes[settings.default] :
settings.remotes[0]
}
+
if (!program['username']) program['username'] = netrc.machines[program['url']].login
if (!program['password']) program['password'] = netrc.machines[program['url']].password
}
process.exit(-1)
}
+ removeEndSlashes(program['url'])
+ removeEndSlashes(program['targetUrl'])
+
const user = {
username: program['username'],
password: program['password']
return false
}
+
+function removeEndSlashes (url: string) {
+ while (url.endsWith('/')) {
+ url.slice(0, -1)
+ }
+}