Skip to content

Commit

Permalink
write current profile to tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Niggel committed Sep 15, 2017
1 parent 857e7c5 commit 923bb26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lib/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ Profile.setProfile = function(profileName,file,callback){
}
});
fs.renameSync(tmpFileName,file);

fs.writeFile("/tmp/aws_name", profileName, function(err) {
if(err) {
return console.log(err);
}
});

callback();
}
});
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
"homepage": "https://github.com/ivarrian/switcher#readme",
"dependencies": {
"inquirer": "^0.10.1",
"linebyline": "^1.1.0"
"linebyline": "^1.1.0",
"shelljs": "^0.7.8"
},
"bin": {
"switch": "./bin/switch"
}
}
}

0 comments on commit 923bb26

Please sign in to comment.