Skip to content

Commit

Permalink
Improving removing extensions for Ubuntu SH runners
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 7, 2020
1 parent acc1fdb commit 7b56e44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ delete_extension() {
sudo sed -i "/$extension/d" "$pecl_file"
sudo rm -rf "$scan_dir"/*"$extension"* >/dev/null 2>&1
sudo rm -rf "$ext_dir"/"$extension".so >/dev/null 2>&1
[ "$runner" = "self-hosted" ] && $apt_remove "php-$extension"
if [ "$runner" = "self-hosted" ]; then
$apt_remove "php-$extension" >/dev/null 2>&1 || true
$apt_remove "php$version-$extension" >/dev/null 2>&1 || true
fi
}

# Function to disable and delete extensions.
Expand Down

0 comments on commit 7b56e44

Please sign in to comment.