Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For something very simple, this is a cool idea. Two observations related to install.sh: i) /usr/local/bin/ rather /usr/bin/ is where manually--not handled by package manager--installed software is usually put, ii) chmod & cp are replaceable by a single install command.

edit: And errriclee's gist seems very useful. For example can go around picking some files wanting to replace a string and then can do `run sed -i 's/old/new/' {}`.



More comments about the install script:

• #!/bin/bash is not portable. For example, on (some?) BSDs, bash is in /usr/local/bin/.

• But you don't use any bash-specific features, so just #!/bin/sh would work.

• Not everybody uses sudo.

• How about a Makefile instead of a shell script?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: