fix: fixed pattern
This commit is contained in:
+2
-2
@@ -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"
|
||||||
@@ -76,4 +76,4 @@ case "$CMD" in
|
|||||||
echo " Restore complete"
|
echo " Restore complete"
|
||||||
echo " Reboot is recommended"
|
echo " Reboot is recommended"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user