From 0fde647072463707e12828dac328c159f1029253 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 14 Feb 2014 08:05:48 -0800 Subject: [PATCH] small fixes and some known local hosts --- home/shrc.zsh | 2 +- install | 2 ++ ssh/known_hosts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/home/shrc.zsh b/home/shrc.zsh index 04bc627..a4ed77e 100644 --- a/home/shrc.zsh +++ b/home/shrc.zsh @@ -15,7 +15,7 @@ ify() { $@ | $ex } -has() { which "$1" >/dev/null && which "$1"; } +has() { which "$1" >/dev/null 2>&1 && which "$1"; } # cleanup in case of inherited exports for x in AR CC CPP CXX CFLAGS CPPFLAGS CXXFLAGS LDFLAGS RANLIB RC WINDRES; do diff --git a/install b/install index e8d0fe8..86f06d4 100755 --- a/install +++ b/install @@ -34,6 +34,8 @@ softlink() { ln -s "$2" "$1" || die "couldn't symlink $1" } +which readlink >/dev/null || exit 1 + rc="$(readlink -f "$(dirname "$0")" )" cd "$HOME" PATH="${PATH:?No existing PATH}:$rc/sh" diff --git a/ssh/known_hosts b/ssh/known_hosts index 0da8c3a..61c50f7 100644 --- a/ssh/known_hosts +++ b/ssh/known_hosts @@ -4,3 +4,5 @@ crawl.develz.org,46.4.68.88 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqv7Ooz6L/NOLV8VF crawl.akrasiac.org,204.140.17.55 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLsNcOQNRhGyjh3lRgl/ewlIWotrEirp9IiplbqgsCzz7kQ5EuATAvptohsC4/j1wt6q8U1LCyYK3kLuoNDcPvA= localhost ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE1EqYb6dE+7BY7os3DvBRxMthGr0pQjwOMNDZWPs76CseGFyLyeOkb7tphNwPbUCOxP+baaU39loDfaQRSDXMk= 204.232.175.90 ssh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