fix: fixed pattern

This commit is contained in:
root
2026-04-14 15:41:11 +04:00
parent 530988a13f
commit d17ec7e084
+1 -1
View File
@@ -47,7 +47,7 @@ case "$CMD" in
echo "Removing conflicts:" echo "Removing conflicts:"
if [ -n "$H_REPLACE" ]; then if [ -n "$H_REPLACE" ]; then
local pattern=$(echo "$H_REPLACE" | sed 's/ /|/g') pattern=$(echo "$H_REPLACE" | sed 's/ /|/g')
REMOVABLE=$(apk list --installed | grep -E "$pattern" | awk '{print $1}' | sed 's/-[0-9].*$//') REMOVABLE=$(apk list --installed | grep -E "$pattern" | awk '{print $1}' | sed 's/-[0-9].*$//')
for p in $REMOVABLE; do for p in $REMOVABLE; do
printf " [-] %s... " "$p" printf " [-] %s... " "$p"