#!/bin/bash

# Confirm that development installations of PsyNet and Dallinger are present.

if [ ! -d "$PSYNET_LOCAL_PATH"/psynet/trial ]; then
  printf '%s\n' "Couldn't find a PsyNet repository at $PSYNET_LOCAL_PATH. Consider downloading a PsyNet repository and/or updating docker/params." >&2  # write error message to stderr
  exit 1
fi

if [ ! -d "$DALLINGER_LOCAL_PATH"/dallinger ]; then
  printf '%s\n' "Couldn't find a Dallinger repository at $DALLINGER_LOCAL_PATH. Consider downloading a Dallinger repository and/or updating docker/params." >&2  # write error message to stderr
  exit 1
fi