Re-indent to clean up

This commit is contained in:
Steve McIntyre 2018-02-15 16:18:21 +00:00
parent 9754353070
commit 3575f5f24e
1 changed files with 29 additions and 29 deletions

View File

@ -18,12 +18,12 @@ if [ "$CHECKSUMS"x = ""x ] ; then
fi fi
for SUM in $CHECKSUMS; do for SUM in $CHECKSUMS; do
UPSUM=$(echo $SUM | tr 'a-z' 'A-Z') UPSUM=$(echo $SUM | tr 'a-z' 'A-Z')
FILE=$UPSUM"SUMS"$EXT FILE=$UPSUM"SUMS"$EXT
if [ $VERBOSE -eq 1 ] ; then if [ $VERBOSE -eq 1 ] ; then
echo "Clearing $PWD/$FILE" echo "Clearing $PWD/$FILE"
fi fi
:> $FILE :> $FILE
done done
# Ordering is important in the "find" call here - we *really* want to # Ordering is important in the "find" call here - we *really* want to
@ -50,30 +50,30 @@ for file in $(find * \
;; ;;
esac esac
for SUM in $CHECKSUMS; do for SUM in $CHECKSUMS; do
UPSUM=$(echo $SUM | tr 'a-z' 'A-Z') UPSUM=$(echo $SUM | tr 'a-z' 'A-Z')
FILE=$UPSUM"SUMS"$EXT FILE=$UPSUM"SUMS"$EXT
CMD="$SUM"sum CMD="$SUM"sum
if [ "$iso"x != ""x ]; then if [ "$iso"x != ""x ]; then
grep -q $iso $FILE grep -q $iso $FILE
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
CKSUM="" CKSUM=""
if [ "$JIGDO" == 1 ] ; then if [ "$JIGDO" == 1 ] ; then
CKSUM=$(zcat -f $file | \ CKSUM=$(zcat -f $file | \
grep -i "Image Hex $CMD" | \ grep -i "Image Hex $CMD" | \
awk '{print $5}') awk '{print $5}')
fi fi
if [ "$CKSUM"x != ""x ] ; then if [ "$CKSUM"x != ""x ] ; then
echo "$CKSUM $iso" >> $FILE echo "$CKSUM $iso" >> $FILE
grep $iso $FILE grep $iso $FILE
else else
echo "No Jigdo help for $SUM, doing it the long way with $CMD" echo "No Jigdo help for $SUM, doing it the long way with $CMD"
$CMD $iso >> $FILE $CMD $iso >> $FILE
grep $iso $FILE grep $iso $FILE
fi fi
fi fi
fi fi
# Also add the template, jigdo and torrent files to the SUMS, # Also add the template, jigdo and torrent files to the SUMS,
# if they exist # if they exist