Developing lightweight computation at the DSG edge

Commit b27bbd83 authored by p4u's avatar p4u Committed by Roger Pueyo Centelles
Browse files

Fix regex on join packages function


Signed-off-by: default avatarp4u <p4u@dabax.net>
parent 2c0f03b4
......@@ -433,7 +433,7 @@ list_profiles() {
join_packages() {
local new="$@"
for p in $new; do
echo "$PKG" | egrep -q "(^| |-)${p#*-}($| )" || PKG="$PKG $p"
echo "$PKG" | egrep -q "^(|-)${p#-*}($|)" || PKG="$PKG $p"
done
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment