Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #303 from markcowl/dev
Browse files Browse the repository at this point in the history
fix for issue #302
  • Loading branch information
markcowl committed Aug 10, 2012
2 parents 273cc2f + 0da52f4 commit 95c965c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/cli/commands/account.js
Expand Up @@ -218,7 +218,7 @@ exports.init = function (cli) {

.action(function () {
function deleteIfExists(file, isDir) {
if (fs.existsSync(file)) {
if (utils.pathExistsSync(file)) {
log.silly('Removing ' + file);
(isDir ? fs.rmdirSync : fs.unlinkSync)(file);
return true;
Expand Down Expand Up @@ -340,7 +340,7 @@ exports.init = function (cli) {
};

account.readSubscriptions = function () {
if (!fs.existsSync(publishSettingsFilePath)) {
if (!utils.pathExistsSync(publishSettingsFilePath)) {
throw new Error('No publish settings file found. Please use "azure account import" first.');
}

Expand Down
4 changes: 2 additions & 2 deletions lib/cli/commands/config.js
Expand Up @@ -104,7 +104,7 @@ exports.init = function (cli) {
};

config.writeConfig = function (cfg) {
if (!fs.existsSync(azurePath)) {
if (!utils.pathExistsSync(azurePath)) {
log.silly('Creating folder', azurePath);
fs.mkdirSync(azurePath, 502); //0766
}
Expand All @@ -115,7 +115,7 @@ exports.init = function (cli) {

config.clearConfig = function () {
log.silly('Removing', azureConfigPath);
if (fs.existsSync(azureConfigPath)) {
if (utils.pathExistsSync(azureConfigPath)) {
fs.unlinkSync(azureConfigPath);
return true;
}
Expand Down

0 comments on commit 95c965c

Please sign in to comment.