fic some issues

This commit is contained in:
2016-06-25 03:19:29 +02:00
parent f9cee9ac85
commit e27dd058cc
6 changed files with 11 additions and 17 deletions

View File

@ -23,10 +23,7 @@ export let configStore = () => {
}
plugins.smartfile.memory.toFsSync(
JSON.stringify(config),
{
fileName:"config.json",
filePath:paths.NpmciPackageRoot
}
paths.NpmciPackageConfig
);
}

View File

@ -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;
};

View File

@ -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];