aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-11 20:51:02 -0500
committerDave Reisner <d@falconindy.com>2010-01-11 20:51:02 -0500
commitb49403a7be080eee110fe9f75d4e67fa5eeb0773 (patch)
tree7ac94a4988793062d100c0be670c3af8ec83a67a
parentbdaa697573fa9e9978e66c4ad3ccf323c7b66771 (diff)
downloadsquashfu-b49403a7be080eee110fe9f75d4e67fa5eeb0773.tar.gz
Adjust get_next_available_bin so that it actually returns the next available, not the highest numbered
-rw-r--r--squashfu2
1 files changed, 1 insertions, 1 deletions
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 () {