From 00c1e61505d2e3d575421780cb47a8344eddf077 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 30 Jun 2026 15:16:27 +0200 Subject: firefly-cli: update to 0.2.1 Bump to 0.2.1 and ship the bash completion script as /etc/bash_completion.d/firefly.new, merged on install via a standard SBo doinst.sh config() handler. Co-Authored-By: Claude Opus 4.8 --- firefly-cli/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 firefly-cli/doinst.sh (limited to 'firefly-cli/doinst.sh') diff --git a/firefly-cli/doinst.sh b/firefly-cli/doinst.sh new file mode 100644 index 0000000..9514c89 --- /dev/null +++ b/firefly-cli/doinst.sh @@ -0,0 +1,14 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/bash_completion.d/firefly.new -- cgit v1.2.3