summary refs log tree commit diff stats
path: root/install
diff options
context:
space:
mode:
authorAlan Pearce2013-08-02 10:52:10 +0100
committerAlan Pearce2013-08-02 10:52:10 +0100
commit19c2511ca46d792cbd348dd68f9f6db1a4d75dfe (patch)
treeeb6f9c9c367763b0aeea33a320f4d62533b4e1be /install
parent07a7dedaed8646445c2d8b213186c89833c30e59 (diff)
downloaddotfiles-19c2511ca46d792cbd348dd68f9f6db1a4d75dfe.tar.lz
dotfiles-19c2511ca46d792cbd348dd68f9f6db1a4d75dfe.tar.zst
dotfiles-19c2511ca46d792cbd348dd68f9f6db1a4d75dfe.zip
Installer: check for host-specific zshrc before trying to compile
Diffstat (limited to 'install')
-rwxr-xr-xinstall4
1 files changed, 3 insertions, 1 deletions
diff --git a/install b/install
index 0fa5859..40c134f 100755
--- a/install
+++ b/install
@@ -58,8 +58,10 @@ zfiles=(
 	dotfiles/zsh/functions/fasd/fasd
 	$fasd_cache
 	dotfiles/zsh/zshrc
-	dotfiles/zsh/zshrc_${HOST%%.*}
 )
+if [[ -f dotfiles/zsh/zshrc_${HOST%%.*} ]]; then
+	zfiles+=dotfiles/zsh/zshrc_${HOST%%.*}
+fi
 if [[ -e /usr/bin/emerge ]]; then
 	zfiles+=dotfiles/zsh/zshrc_gentoo
 fi