Skip to content

Commit

Permalink
Check that plugin dir exists before linking to it
Browse files Browse the repository at this point in the history
  • Loading branch information
strk authored and nyalldawson committed Mar 24, 2020
1 parent 216d67a commit 6111ba5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .docker/qgis_resources/test_runner/qgis_setup.sh
Expand Up @@ -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
Expand Down

0 comments on commit 6111ba5

Please sign in to comment.