From d7846179146cd9eee85339d69d1bc057665d4f34 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 21 Apr 2021 15:10:15 -0400 Subject: Fix post-checkout script Don't exit on no-such-variable because we can just silently fail... --- Biz/Ide/post-checkout | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Biz/Ide/post-checkout b/Biz/Ide/post-checkout index 41ede59..95b35cd 100755 --- a/Biz/Ide/post-checkout +++ b/Biz/Ide/post-checkout @@ -1,17 +1,14 @@ #!/usr/bin/env bash -set -eu +set -e init_tags=$BIZ_ROOT/Biz/Ide/init_tags.sh - old=$1 new=$2 - # filter out only the changed haskell files changed=($(git diff --diff-filter=d --name-only $old $new -- '*.hs')) - if [[ ! -r tags ]] then $init_tags -elif [[ ${#changed} -gt 0 ]] +elif [[ ${#changed[@]} -gt 0 ]] then $init_tags $changed fi -- cgit v1.2.3