From b49403a7be080eee110fe9f75d4e67fa5eeb0773 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 11 Jan 2010 20:51:02 -0500 Subject: Adjust get_next_available_bin so that it actually returns the next available, not the highest numbered --- squashfu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squashfu b/squashfu index ff070eb..ccf2cfd 100644 --- a/squashfu +++ b/squashfu @@ -40,7 +40,7 @@ mount_union_with_bins () { get_next_available_bin () { # Arguments: none # Returns: Numeric value of the next unused bin - return $(cut -d: -f1 "$BINVENTORY" | sort -n | tail -1) + return $[ $(cut -d: -f1 "$BINVENTORY" | sort -n | tail -1) + 1 ] } sweep_bins () { -- cgit v1.2.3