Skip to content
Permalink
Browse files

Check that plugin dir exists before linking to it

  • Loading branch information
strk authored and nyalldawson committed Mar 24, 2020
1 parent 216d67a commit 6111ba50cf89f703fc7694c5a922570bdeff7c96
Showing with 6 additions and 1 deletion.
  1. +6 −1 .docker/qgis_resources/test_runner/qgis_setup.sh
@@ -44,7 +44,12 @@ if [[ -n "$PLUGIN_NAME" ]]; then
printf "%s=true\n\n" "$PLUGIN_NAME" >> $CONF_MASTER_FILE
# Install the plugin
if [ ! -d "${PLUGIN_MASTER_FOLDER}/${PLUGIN_NAME}" ]; then
ln -s "/tests_directory/${PLUGIN_NAME}" "${PLUGIN_MASTER_FOLDER}"
plugin_dir="/tests_directory/${PLUGIN_NAME}"
if [ ! -d "${plugin_dir}" ]; then
echo "ERROR: ${plugin_dir} does not exist" >&2
exit 1
fi
ln -s "${plugin_dir}" "${PLUGIN_MASTER_FOLDER}"
echo "Plugin master folder linked in ${PLUGIN_MASTER_FOLDER}/${PLUGIN_NAME}"
fi
fi

0 comments on commit 6111ba5

Please sign in to comment.
You can’t perform that action at this time.