diff options
author | Dan McGee <dan@archlinux.org> | 2008-12-08 05:12:17 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-12-08 05:12:17 +0100 |
commit | bd628274cc8db81704860e69894fcd217c2068d0 (patch) | |
tree | 0ca59deff11d9eff700494e727604903b60352b8 /contrib/pactree | |
parent | 9ae7eb1292a42eb568fd982f32d3dca5b9794a2d (diff) | |
parent | 78cf32e194a1a58c6a7ee3d1c10623e668be71d6 (diff) | |
download | pacman-bd628274cc8db81704860e69894fcd217c2068d0.tar.gz pacman-bd628274cc8db81704860e69894fcd217c2068d0.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'contrib/pactree')
-rwxr-xr-x | contrib/pactree | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/pactree b/contrib/pactree index d9fa8b3b..df536717 100755 --- a/contrib/pactree +++ b/contrib/pactree @@ -208,11 +208,10 @@ for (( n=0 ; n < $len_options ; n++ )); do continue fi - if [[ "${options[$n]}" =~ -d[[:digit:]]* || "${options[$n]}" == "--depth" ]]; then + if [[ "${options[$n]}" =~ -d[[:digit:]]+ || "${options[$n]}" == "--depth" ]]; then if [[ "${options[$n]#-d}" =~ [[:digit:]]+ ]]; then max_depth="${options[$n]#-d}" elif [[ ${options[$((n+1))]} =~ [[:digit:]]+ ]]; then -# if [ ${options[$((n+1))]} -eq ${options[$((n+1))]} 2>/dev/null ]; then max_depth="${options[$((n+1))]}" unset options[$((n+1))] ((++n)) |