From: Eric Bollengier Date: Mon, 19 Oct 2009 09:54:18 +0000 (+0000) Subject: fix typo in disk-changer for listall command X-Git-Tag: Release-7.0.0~2599^2~8^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a62c91791e31826719be37e145a64cde54c4904b;p=bacula%2Fbacula fix typo in disk-changer for listall command --- diff --git a/bacula/scripts/disk-changer.in b/bacula/scripts/disk-changer.in index 3eab743a3e..ccb958ba06 100644 --- a/bacula/scripts/disk-changer.in +++ b/bacula/scripts/disk-changer.in @@ -285,7 +285,7 @@ case $cmd in if [ -f $dir/loaded${i} ]; then ld=`cat $dir/loaded${i}` v=`awk -F: "/^$ld:/"' { print $2 }' $dir/barcodes` - echo "D:$i:F:$ld:$$v" + echo "D:$i:F:$ld:$v" echo "^$ld:" >> $TMPFILE fi i=`expr $i + 1` @@ -294,7 +294,7 @@ case $cmd in # Empty slots are not in barcodes file # When we detect a gap, we print missing rows as empty # At the end, we fill the gap between the last entry and maxslot - grep -v -f $TMPFILE $dir/barcodes | \ + grep -v -f $TMPFILE $dir/barcodes | sort -n | \ perl -ne 'BEGIN { $cur=1 } if (/(\d+):(.+)?/) { if ($cur == $1) {