mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-04 07:25:53 +00:00
trivial: snap: fix bash completion
Since the snap is named fwupd, fwupdtool gets namespaced as fwupd.fwupdtool so bash completion doesn't work properly. Add a step to fixup bash completion paths
This commit is contained in:
parent
71043aba39
commit
352f2c9b49
7
contrib/snap/fix-bash-completion/Makefile
Normal file
7
contrib/snap/fix-bash-completion/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
build:
|
||||
true
|
||||
install:
|
||||
#fixes up fwupdtool -> fwupd.fwupdtool
|
||||
sed -i "s,\(complete -F _fwupd[a-z]*\) \(fwupd.*\),\1 fwupd.\2,; \
|
||||
s,\(command.*\)\(fwupdtool\),\1fwupd.\2," \
|
||||
${SNAPCRAFT_STAGE}/usr/share/bash-completion/completions/*
|
@ -20,7 +20,6 @@ apps:
|
||||
|
||||
plugs:
|
||||
fwupdtool:
|
||||
interface: fwupd
|
||||
interface: home
|
||||
|
||||
parts:
|
||||
@ -261,6 +260,10 @@ parts:
|
||||
- -usr/lib/*/glib-2.0
|
||||
- -usr/lib/*/pkgconfig
|
||||
after: [appstream-glib-dev, libfwup-dev, gudev, gusb]
|
||||
fix-bash-completion:
|
||||
plugin: make
|
||||
source: contrib/snap/fix-bash-completion
|
||||
after: [fwupd]
|
||||
update-mime:
|
||||
plugin: make
|
||||
source: contrib/snap/update-mime
|
||||
|
Loading…
Reference in New Issue
Block a user