swupd-add-pkg: use exact match for pkg name

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This commit is contained in:
Tudor Marcu
2018-03-16 17:13:11 -07:00
committed by Matthew Johnson
parent 1330a634e4
commit 516acc80fb
+1 -1
View File
@@ -71,7 +71,7 @@ if [[ -n "$pkg" && -n "$bundle" ]]; then
# [MAINTAINER]: Mixer User" | sudo tee "$BUNDLE_DIR/$bundle" > /dev/null
fi
grep "$pkg" "$BUNDLE_DIR/$bundle"
grep -x "$pkg" "$BUNDLE_DIR/$bundle"
if [ $? -ne 0 ]; then
# Write package to bundle definition
echo "$pkg" | sudo tee -a "$BUNDLE_DIR/$bundle" > /dev/null