lsb-release-minimal 12.1-r6
Shell command variable at a command boundaryFile starts with
SHA-25686d6c7cf4db10398ab96ad02556a0cc1f952a9e7cb8ab498a4542f6ed7aaebc6
MaleculeO(Er)H(Po₂)
Evidence
1#!/bin/sh
2
3# SPDX-FileCopyrightText: 2021 Gioele Barabucci
4# SPDX-License-Identifier: ISC
5
6set -eu
7
8export LC_ALL="C.UTF-8"
9
10help () {
11 cat <<-EOD
12 Usage: lsb_release [options]
13
14 Options:
15 -h, --help show this help message and exit
16 -v, --version show LSB modules this system supports
17 -i, --id show d …
33:62… on,id,description,release,codename,all,short -- "$@") || exit 2
34eval set -- "$options"
35[ "$1" = "--" ] && show_warning=true
36while [ $# -gt 0 ] ; do
37 case "$1" in
38 -h|--help) help; exit ;;
39 -v|-- …
⋯6 lines
54 value="$2"
55
56 if $short_format ; then
57 printf "%s\n" "$value"
58 else
59 printf "%s:\t%s\n" "$label" "$value"
60 fi
61}
62
63# Load release info from standard identification data files
64[ -f /usr/lib/os-release ] && os_release=/usr/lib/os-release
65[ -f /etc/os-release ] && os_release=/etc/os-release
66[ "${LSB_OS_RELEASE-x}" != "x" ] && [ -f "$LSB_OS_RELEASE" ] && os_release="$LSB_OS_RELEASE"
67[ "${os_release-x}" != "x" ] && . "$os_release"
68
69# Mimic the output of Debian's Python-based lsb_release
70# Capitalize ID
71: "${ID=}"
72ID="$(printf "%s" "$ID" | cut -c1 …
82:14… nimal standard-conform output (if stdout is a TTY).
83[ -t 1 ] && $show_warning && echo "No LSB modules are available." >&2
84
85if $show_id ; then
86 display_line "Distributor ID" "${ID:-n/a}"
87fi
88
89if $show_desc ; then
90 display_line "Description" "${PRETTY_NAME:-n/a}"
91fi
92
93if $show_release ; then
94 display_line "Release" "${VERSION_ID:-n/a}"
95fi
96
97if $show_codename ; then
98 display_line "Codename" "${VERSION_CODENAME:-n/a}"
99fi
1# Generated by melange
2pkgname = lsb-release-minimal
3pkgver = 12.1-r6
4arch = x86_64
5size = 39130
6origin = lsb-release-minimal
7pkgdesc = Minimal fake lsb-release that uses os-release
8url =
9commit = 9d2936ae8407838d2d5f2d0f4f94e444ddb0ca2a
10maintainer = wolfi
11builddate = 1775085176
12license = ISC
No evidence locations were recorded for this file. Raw result