trivial: snap: fix bash completion

fwupdmgr is now using fwupdagent, and so we need to reference properly.
This commit is contained in:
Mario Limonciello 2020-03-20 10:32:38 -05:00 committed by Mario Limonciello
parent 14001f7523
commit 0b2c717e97

View File

@ -3,7 +3,8 @@ build:
install: install:
#fixes up fwupdtool -> fwupd.fwupdtool #fixes up fwupdtool -> fwupd.fwupdtool
sed -i "s,\(complete -F _fwupd[a-z]*\) \(fwupd.*\),\1 fwupd.\2,; \ sed -i "s,\(complete -F _fwupd[a-z]*\) \(fwupd.*\),\1 fwupd.\2,; \
s,\(command.*\)\(fwupdtool\),\1fwupd.\2," \ s,\(command.*\)\(fwupdtool\),\1fwupd.\2,; \
s,\(command.*\)\(fwupdagent\),\1fwupd.\2," \
${SNAPCRAFT_STAGE}/share/bash-completion/completions/* ${SNAPCRAFT_STAGE}/share/bash-completion/completions/*
# fixes up dbus service for classic snap # fixes up dbus service for classic snap
sed -i 's!SystemdService=\(.*\)!SystemdService=snap.fwupd.fwupd.service!' \ sed -i 's!SystemdService=\(.*\)!SystemdService=snap.fwupd.fwupd.service!' \