diff options
-rwxr-xr-x | Biz/Ide/post-checkout | 7 |
1 files 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 |