[prev] [index] [next]

Exercise: Simple Installer

Consider that we have:
  • a compiled self-contained binary executable
  • we do not want to distribute the source code
Create a shell script called install
  • that contains a binary executable called hello
  • that installs it into a user-specified directory
  • that checks whether it already exists before installing