Skip to content

Commit

Permalink
Merge pull request #32 from fdammeke/master
Browse files Browse the repository at this point in the history
Fix expression matching in .bashrc when including system profiles
  • Loading branch information
bartwo committed Aug 3, 2015
2 parents 2e5fc84 + 05d86ff commit 9851eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/localuser.pp
Expand Up @@ -193,13 +193,13 @@

file_line { "${home}/.bashrc":
path => "${home}/.bashrc",
line => '[ -d .profile.d ] && [[ -z $PS1 ]] && [[ -f .profile.d/*.sh ]] && source .profile.d/*.sh',
line => '[ -d .profile.d ] && [ -z "$PS1" ] && [ -f .profile.d/*.sh ] && source .profile.d/*.sh',
require => User[$title]
}
file_line { "${home}/.bashrc-remove":
ensure => absent,
path => "${home}/.bashrc",
line => '[ -d .profile.d ] && [[ -z $PS1 ]] && source .profile.d/*.sh',
line => '[ -d .profile.d ] && [[ -z $PS1 ]] && [[ -f .profile.d/*.sh ]] && source .profile.d/*.sh',
require => User[$title]
}

Expand Down

0 comments on commit 9851eb6

Please sign in to comment.