From f83f7845370c7827e8d8d1f0036bc09590937d23 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 25 Apr 2010 18:28:55 -0400 Subject: Check for leading tabs as well as white space --- squashfu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squashfu b/squashfu index 21ca69c..ba95f24 100755 --- a/squashfu +++ b/squashfu @@ -328,7 +328,7 @@ action_rollback () { fi # Form a chronologically ordered list of bins, assuming the user didn't give bogus input - local bin_list=($(grep -vE "^[ ]*$" "$BINVENTORY" | sort -t: -r -n -k2 | cut -d: -f1)) + local bin_list=($(grep -vE "^[ \t]*$" "$BINVENTORY" | sort -t: -r -n -k2 | cut -d: -f1)) if [[ $1 -gt ${#bin_list[@]} ]]; then die "Cannot rollback more than ${#bin_list[@]} backups" -- cgit v1.2.3