mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-04 07:48:47 +00:00
swupd-add-pkg: use exact match for pkg name
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This commit is contained in:
committed by
Matthew Johnson
parent
1330a634e4
commit
516acc80fb
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user