From b7fe62ad94a97ad45b7d8304d206b998e47fefc5 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 20 Oct 2016 09:22:25 -0200 Subject: [PATCH] shellcheck --- bin/dot_update | 3 ++- zsh/zshrc.symlink | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/dot_update b/bin/dot_update index 23d06aa00..51bfdb75f 100755 --- a/bin/dot_update +++ b/bin/dot_update @@ -11,7 +11,8 @@ cd "$ZSH" || exit 1 PATH="$(command -p getconf PATH):/usr/local/bin" # load custom config if any -[[ -a ~/.localrc ]] && source ~/.localrc +# shellcheck disable=SC1090 +[ -f ~/.localrc ] && . ~/.localrc # ssh would not work under cron, add a https one echo "› setting up update channel" diff --git a/zsh/zshrc.symlink b/zsh/zshrc.symlink index bcb947bc9..5ccc6543b 100644 --- a/zsh/zshrc.symlink +++ b/zsh/zshrc.symlink @@ -42,4 +42,5 @@ unset config_files updated_at # use .localrc for SUPER SECRET CRAP that you don't # want in your public, versioned repo. -[[ -a ~/.localrc ]] && source ~/.localrc +# shellcheck disable=SC1090 +[ -f ~/.localrc ] && . ~/.localrc