Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/shellsにbrew fishがないときだけ、書き込むようにする #2

Closed
harapeko opened this issue Jan 29, 2018 · 1 comment

Comments

@harapeko
Copy link
Owner

lineinfileだと/etc/shellsに書き込むのが(/private/etc)には直接どうのって言われたから
shellのほうで次のようにして無事追加された

  • hoge
    shell: sudo sh -c "echo '/usr/local/bin/fish' >> /etc/shells"

ただこれだと毎回最終行に追加されてしまうので、
/etc/shellsの中をgrepしてregisterに登録して、なければ追加するようにしたほうがいいかな

今日はもう無理眠い
明日やる

@harapeko
Copy link
Owner Author

すでに対応済みだった
最も良い答えは
ansible.builtin.lineinfileでした

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant