summaryrefslogtreecommitdiff
path: root/listisos.sh
blob: 1aef8f9bc744502fbd9a2094e5868fe18dff11da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

ISOINFOS=($(find distro -name isoinfo))
for _isoinfo in "${ISOINFOS[@]}"
do
	_distrobase="$(cut -d'/' -f1-2 <<< "$_isoinfo")"
	_distroisodir="$(dirname $_isoinfo | cut -d'/' -f2-)"
	if [ -f "$_distrobase/distroinfo" ]; then
		source "$_distrobase/distroinfo"
	else
		continue
	fi
	source "$_isoinfo"
	if [ -n "$ISONAME" ]; then
		echo "$_distroisodir: $ISONAME"
	fi
done