diff options
author | Dave Reisner <d@falconindy.com> | 2010-04-25 18:28:55 -0400 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-04-25 18:28:55 -0400 |
commit | f83f7845370c7827e8d8d1f0036bc09590937d23 (patch) | |
tree | 47fdca7a37ae16cc9134a0e1318e48534954b154 | |
parent | 4e0618fc71f117498bfa72a3f54c2062ea72e3a8 (diff) | |
download | squashfu-f83f7845370c7827e8d8d1f0036bc09590937d23.tar.gz |
Check for leading tabs as well as white space
-rwxr-xr-x | squashfu | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |