Fix cp in add_tools.sh

This commit is contained in:
Shivam Mathur 2022-01-09 13:31:49 +05:30
parent 22ebe0d733
commit b7cdb2373c
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -91,7 +91,7 @@ add_tool() {
echo "export PATH=\$PATH:$tool_path_dir" | sudo tee -a "$GITHUB_ENV" >/dev/null echo "export PATH=\$PATH:$tool_path_dir" | sudo tee -a "$GITHUB_ENV" >/dev/null
fi fi
if [ -e "$tool_path" ]; then if [ -e "$tool_path" ]; then
sudo cp -a "$tool_path" /tmp/"$tool" sudo cp -aL "$tool_path" /tmp/"$tool"
fi fi
IFS="," read -r -a url <<<"$url" IFS="," read -r -a url <<<"$url"
status_code=$(get -v -e "$tool_path" "${url[@]}") status_code=$(get -v -e "$tool_path" "${url[@]}")
@ -155,6 +155,6 @@ add_composertool() {
) || add_log "$cross" "$tool" "Could not setup $tool" ) || add_log "$cross" "$tool" "Could not setup $tool"
add_tools_helper "$tool" add_tools_helper "$tool"
if [ -e "$composer_bin/composer" ]; then if [ -e "$composer_bin/composer" ]; then
sudo cp -p "$tool_path_dir/composer" "$composer_bin" sudo cp -a "$tool_path_dir/composer" "$composer_bin"
fi fi
} }