Fix shellcheck warning in add_tools.sh

This commit is contained in:
Shivam Mathur 2021-11-16 08:14:06 +05:30
parent dfc02c42d9
commit 81a06ff6ed
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -19,6 +19,6 @@ add_tools_helper() {
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/phpdocumentor 2>/dev/null || true
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/phpdoc
elif [[ "$tool" =~ (symfony|vapor|wp)-cli ]]; then
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/${tool%-*}
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/"${tool%-*}"
fi
}