From 3614cab59d018586ed77d01845455cb025b4f2ec Mon Sep 17 00:00:00 2001 From: Nathan Farrant-Diaz Date: Wed, 8 Jun 2016 10:56:43 -0400 Subject: [PATCH] updated check conf file for more helpful error messages on symlink being broken --- scripts/check_conf_file.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check_conf_file.sh b/scripts/check_conf_file.sh index 944ccb6..0dca3eb 100755 --- a/scripts/check_conf_file.sh +++ b/scripts/check_conf_file.sh @@ -2,8 +2,8 @@ # # This script is designed to be run from the top level directory of your project and will break if called from anywhere else -if [ ! -h ./config/asc.conf ]; then - echo "Missing symbolic link: $PWD/config/asc.conf" +if [ ! -e ./config/asc.conf ]; then + echo "Missing or broken symbolic link: $PWD/config/asc.conf" echo "Please use the command 'npm run switch-conf-file' to create the symbolic link ./config/asc.conf to your config file" echo "If you don't have a config file set up you can create one using 'npm run new-config-file'" exit 1