mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-04 04:34:40 +07:00
WP-CLI tool support added
This commit is contained in:

committed by
Shivam Mathur

parent
03fd0b8719
commit
d95ca49e8d
@ -109,6 +109,8 @@ add_tool() {
|
||||
sudo sed -i '' 's/exit(9)/exit(0)/' "$tool_path"
|
||||
tr -d '\r' < "$tool_path" | sudo tee "$tool_path.tmp" >/dev/null 2>&1 && sudo mv "$tool_path.tmp" "$tool_path"
|
||||
sudo chmod a+x "$tool_path"
|
||||
elif [ "$tool" = "wp-cli" ]; then
|
||||
sudo cp "$tool_path" /usr/local/bin/wp
|
||||
fi
|
||||
add_log "$tick" "$tool" "Added"
|
||||
else
|
||||
|
Reference in New Issue
Block a user