Skip to content

Commit

Permalink
Bring bash version in-sync with Ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
droopy4096 authored Sep 18, 2024
1 parent fb0c5b2 commit 8516678
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 8516678

Please sign in to comment.