aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-04-25 18:28:55 -0400
committerDave Reisner <d@falconindy.com>2010-04-25 18:28:55 -0400
commitf83f7845370c7827e8d8d1f0036bc09590937d23 (patch)
tree47fdca7a37ae16cc9134a0e1318e48534954b154
parent4e0618fc71f117498bfa72a3f54c2062ea72e3a8 (diff)
downloadsquashfu-f83f7845370c7827e8d8d1f0036bc09590937d23.tar.gz
Check for leading tabs as well as white space
-rwxr-xr-xsquashfu2
1 files changed, 1 insertions, 1 deletions
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"