aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-03-01 21:34:45 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-03-01 21:34:45 +1300
commitbbb3c55c9a2c1ec927a7aaf593f41f7afa82759c (patch)
treee2d56952cc4428e61b665e176c5d8ed678ca3783 /install
parentUse consistent semicolon spacing (diff)
downloaddotfiles-bbb3c55c9a2c1ec927a7aaf593f41f7afa82759c.tar.gz
dotfiles-bbb3c55c9a2c1ec927a7aaf593f41f7afa82759c.zip
Simplify some command existence checks
Diffstat (limited to 'install')
-rwxr-xr-xinstall9
1 files changed, 2 insertions, 7 deletions
diff --git a/install b/install
index 4d33d0d6..1798c834 100755
--- a/install
+++ b/install
@@ -104,12 +104,7 @@ while getopts :dgmnrtwx opt ; do
# Mutt
m)
# Warn about some non-obvious dependencies if necessary
- for depends in abook msmtp ; do
- if ! hash "$depends" 2>/dev/null ; then
- printf '%s: warning: %s(1) not found\n' \
- "$self" "$depends" >&2
- fi
- done
+ hash abook msmtp
# Link in files
lns "$dotfiles"/mutt/muttrc "$HOME"/.muttrc
@@ -159,7 +154,7 @@ done
shift $((OPTIND-1))
# Compile terminfo files
-if hash tic 2>/dev/null ; then
+if hash tic ; then
for info in "$dotfiles"/terminfo/*.info ; do
tic "$info"
done