more robust: allow empty root (e.g. via symlink);
authorwenzelm
Wed Mar 20 21:54:08 2019 +0100 (4 weeks ago)
changeset 69929b979e3044d8e
parent 69928 3ed262d72468
child 69930 b5286c564861
more robust: allow empty root (e.g. via symlink);
lib/scripts/ghc
     1.1 --- a/lib/scripts/ghc	Wed Mar 20 21:15:20 2019 +0100
     1.2 +++ b/lib/scripts/ghc	Wed Mar 20 21:54:08 2019 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4  #
     1.5  # Invoke ghc via "stack".
     1.6  
     1.7 -if [ -d "$ISABELLE_STACK_ROOT" ]; then
     1.8 +if [ -e "$ISABELLE_STACK_ROOT/config.yaml" ]; then
     1.9    isabelle_stack ghc -- "$@"
    1.10  else
    1.11    echo "Cannot execute ghc: missing Isabelle GHC setup" >&2