blob f589b3340252c653df97a82ce429528beee43b1a 397 bytes (raw)
name: scripts/format-uuid.sh # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| | #!/bin/sh -eu
#
# SPDX-FileCopyrightText: 2021-2022 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: EUPL-1.2+
set -o pipefail
substr () {
str=$1
beg=$2
end=$3
echo "$str" | cut -c "$beg-$end"
}
u1=$(substr "$1" 1 8)
u2=$(substr "$1" 9 12)
u3=$(substr "$1" 13 16)
u4=$(substr "$1" 17 20)
u5=$(substr "$1" 21 32)
printf "%s\n" "$u1-$u2-$u3-$u4-$u5"
|
debug log:
solving f589b3340252c653df97a82ce429528beee43b1a ...
found f589b3340252c653df97a82ce429528beee43b1a in https://inbox.spectrum-os.org/spectrum-devel/20251029-updates-v1-4-401c1be2a11b@gmail.com/
found 497a5f2daeef88e0143f5021cd64fa2181ffe163 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 497a5f2daeef88e0143f5021cd64fa2181ffe163 scripts/format-uuid.sh
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251029-updates-v1-4-401c1be2a11b@gmail.com/
diff --git a/scripts/format-uuid.sh b/scripts/format-uuid.sh
index 497a5f2daeef88e0143f5021cd64fa2181ffe163..f589b3340252c653df97a82ce429528beee43b1a 100755
Checking patch scripts/format-uuid.sh...
Applied patch scripts/format-uuid.sh cleanly.
index at:
100755 f589b3340252c653df97a82ce429528beee43b1a scripts/format-uuid.sh
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).