summaryrefslogtreecommitdiff
path: root/client/client-updates/src/client-updates-inspect
blob: 03ae2d659d1d143e312588702132d52b89aeaa99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

#config
SRC=$(dirname $(readlink -f "$0"))

. ${SRC}/client-updates.conf

DIRECTORY="${UPDATES_DIR}/release"
listing=$(mktemp)
IFS='
'
for f in $(tac $DIRECTORY/resources2.txt); do
    file=$(awk '{ print $1; }' <<< $f)
    unzip -l "$DIRECTORY/$file" >> $listing
done

if [ -f "$listing" ]; then
    less "$listing"
fi
rm -f "$listing"