Skip to content

Commit

Permalink
Replace all the dots
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Nov 28, 2014
1 parent 90e8c48 commit 6eaef63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CLI.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ CLI.prototype.remoteHostConfig = function(host, options) {
if(error) throw error

if(!host) {
host = hostname.replace(/\./, '-')
host = hostname.replace(/\./g, '-')
}

console.info('')
Expand Down Expand Up @@ -679,7 +679,7 @@ CLI.prototype.addRemoteUser = function(userName, hostName, options) {
console.info('')
console.info('Add the following to your bossweb-users file:')
console.info('')
console.info('[%s.%s]'.cyan, userName, os.hostname().replace(/\./, '-'))
console.info('[%s.%s]'.cyan, userName, os.hostname().replace(/\./g, '-'))
console.info(' secret = %s'.cyan, user.secret)
console.info('')
console.info('If %s is not in your config file yet, run `bs-web passwd %s` to generate the appropriate configuration', userName, userName)
Expand Down

0 comments on commit 6eaef63

Please sign in to comment.