mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Check that plugin dir exists before linking to it
This commit is contained in:
parent
216d67a4f5
commit
6111ba50cf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user