]> ruderich.org/simon Gitweb - config/dotfiles.git/commit
Add installed() function to check if a program exists.
authorSimon Ruderich <simon@ruderich.org>
Mon, 23 Feb 2009 17:49:09 +0000 (11:49 -0600)
committerSimon Ruderich <simon@ruderich.org>
Mon, 23 Feb 2009 17:49:09 +0000 (11:49 -0600)
commit84f932c810dae9ba0dd948e3a90c2f90d1f4e24a
treeb033019dce988bc68cf187582ec5f729c67f71ab
parent5a511574188e52137e66a73d1562ad0a1eac8067
Add installed() function to check if a program exists.

This can be used in setup.sh functions so links are only installed for
applications which exist on the machine.

Also add tests for the function.
lib.sh
tests/lib.sh.test [new file with mode: 0644]
tests/lib.sh.test.out [new file with mode: 0644]
tests/run.sh [new file with mode: 0755]