Skip to content

Commit

Permalink
Merge pull request #12398 from droopy4096/droopy4096-patch-1
Browse files Browse the repository at this point in the history
Bring bash version in-sync with Ansible
  • Loading branch information
jan-cerny authored Sep 20, 2024
2 parents 3789390 + 8516678 commit da1fa23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{% endif %}}

grep -q "^[^#]*\bumask" {{{ etc_bash_rc }}} && \
sed -i -E -e "s/^([^#]*\bumask).*/\1 $var_accounts_user_umask/g" {{{ etc_bash_rc }}}
sed -i -E -e "s/^([^#]*\bumask)[[:space:]]+[[:digit:]]+/\1 $var_accounts_user_umask/g" {{{ etc_bash_rc }}}
if ! [ $? -eq 0 ]; then
echo "umask $var_accounts_user_umask" >> {{{ etc_bash_rc }}}
fi

0 comments on commit da1fa23

Please sign in to comment.