fic some issues
This commit is contained in:
@ -23,10 +23,7 @@ export let configStore = () => {
|
||||
}
|
||||
plugins.smartfile.memory.toFsSync(
|
||||
JSON.stringify(config),
|
||||
{
|
||||
fileName:"config.json",
|
||||
filePath:paths.NpmciPackageRoot
|
||||
}
|
||||
paths.NpmciPackageConfig
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ let npm = function(){
|
||||
plugins.beautylog.error("no access token found! Exiting!");
|
||||
process.exit(1);
|
||||
}
|
||||
plugins.smartfile.memory.toFsSync(npmrcFileString,{fileName:".npmrc",filePath:"/root"});
|
||||
plugins.smartfile.memory.toFsSync(npmrcFileString,"/root/.npmrc");
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
};
|
||||
|
@ -14,9 +14,9 @@ export let evaluateSshkey = (sshkeyEnvVarArg) => {
|
||||
let resultArray = sshRegex.exec(sshkeyEnvVarArg);
|
||||
let sshKey = new plugins.smartssh.SshKey();
|
||||
|
||||
if(resultArray[1] && resultArray[1] != "undefined") sshKey.privateKeyBase64 = resultArray[1];
|
||||
if(resultArray[1] && resultArray[1] != "undefined") sshKey.privKeyBase64 = resultArray[1];
|
||||
let publicKey:string;
|
||||
if(resultArray[2] && resultArray[2] != "undefined") sshKey.publicKeyBase64 = resultArray[2];
|
||||
if(resultArray[2] && resultArray[2] != "undefined") sshKey.pubKeyBase64 = resultArray[2];
|
||||
let host:string;
|
||||
if(resultArray[3] && resultArray[3] != "undefined") sshKey.host = resultArray[1];
|
||||
|
||||
|
Reference in New Issue
Block a user