fix: installation version on generic linux

This commit is contained in:
xeruf 2023-01-26 18:06:48 +01:00
parent aa8d3b2dd0
commit ee98590ea5
4 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ runinstalee() {
# TODO Manjaro
if ! test -f "$handlersfile"
then copy="$(find "$dir_home" -name "handlers.available.*" -exec sh -c "echo {} | rev | cut -d'.' -f1 | rev | xargs -i% expr $(lsb_release -s -i | tr 'A-Z' 'a-z' || cat /etc/os-release | grep '^ID=' | cut -d= -f2) : % >/dev/null" \; -a -print)" &&
then copy="$(find "$dir_home" -name "handlers.available.*" -exec sh -c "echo {} | rev | cut -d'.' -f1 | rev | xargs -i% expr $(cat /etc/os-release | grep '^ID=' | cut -d= -f2 | grep . || lsb_release -s -i | tr 'A-Z' 'a-z') : % >/dev/null" \; -a -print)" &&
test -n "$copy" &&
echo "Bootstrapping available handlers from $copy" &&
cp "$copy" "$handlersfile" || {

0
packages/abra/linux Normal file → Executable file
View File

2
packages/instalee/linux Normal file → Executable file
View File

@ -10,7 +10,7 @@ sudo install -D --target-directory "${usrdir}/share/man/man1/" "${_pkgname}.1"
sudo install -D --target-directory "$bin" "${_pkgname}"
pkgver="$({ git describe --long --tags 2>/dev/null || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"; } | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' )"
sudo sed -i "s/r%s.%s/version ${pkgver}/" "$bin/${_pkgname}"
sudo sed -i "s/r%s[^\"]*\"/version ${pkgver}\"/" "$bin/${_pkgname}"
echo -n "Installed "
$bin/instalee --version

0
packages/k9s/linux Normal file → Executable file
View File