mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-04 14:31:21 +00:00

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
8 lines
244 B
Makefile
8 lines
244 B
Makefile
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/*
|