From 0a2130c801746cde0620d16f35b3deb7ec856980 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 8 Jul 2025 15:33:07 -0400 Subject: [PATCH] added install script --- README.md | 15 ++++++++++++++- install.sh | 7 +++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 install.sh diff --git a/README.md b/README.md index d8fa96a..46016a3 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,17 @@ confirmation. It requires `kakoune` since we use `kak -f` to perform the replacement. To use the script, simply provide a path to a `PKGBUILD` or its parent -directory as the argument. +directory as the argument. If no argument is given, the current working +directory is used. + +The following installation script is provided as a convenience. You can +copy this code into a POSIX shell to install `update-integrity`. + +```sh +#!/bin/sh + +script="https://git.sr.ht/~ficd/pkgbuild-update-integrity/blob/main/update-integrity" +curl "$script">update-integrity +chmod +x update-update-integrity +sudo cp -f update-integrity /usr/bin/update-integrity +``` diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..2cc3539 --- /dev/null +++ b/install.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +script="https://git.sr.ht/~ficd/pkgbuild-update-integrity/blob/main/update-integrity" +curl "$script">update-integrity +chmod +x update-update-integrity +sudo cp -f update-integrity /usr/bin/update-integrity +