diff options
author | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2008-11-06 18:33:32 +0100 |
---|---|---|
committer | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2008-11-06 19:28:08 +0100 |
commit | b016188e699a8acd4c408e53f2186073d395049a (patch) | |
tree | de2e40c512778f4f832b1ffd12765aeed4940ffe | |
parent | d31d4f33a36d16ebae806343c898ddc5cb8c9dbd (diff) | |
download | wgetpaste-b016188e699a8acd4c408e53f2186073d395049a.tar.gz |
Add grid in showservices.
-rwxr-xr-x | wgetpaste | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -271,7 +271,7 @@ EOF showservices() { echo "Services supported: (case sensitive):" local max s IND INDV engine url d - max=0 + max=4 for s in $SERVICES; do [[ ${#s} -gt $max ]] && max=${#s} done @@ -284,13 +284,16 @@ showservices() { [[ ${#s} -gt $max ]] && max=${#s} done ((INDV=3+max+IND)) + engine=" $E[${INDV}G| Pastebin engine:" fi + echo " Name: $E[${IND}G| Url:$engine" + echo -ne " "; for((s=3;s<${INDV:-${IND}}+17;s++)); do (( $s == IND-1 || $s == INDV-1 )) && echo -ne "|" || echo -ne "="; done; echo for s in $SERVICES; do [[ $s = $DEFAULT_SERVICE ]] && d="*" || d=" " - [[ $VERBOSE ]] && engine=ENGINE_$s && engine="$E[${INDV}G- ${!engine}" + [[ $VERBOSE ]] && engine=ENGINE_$s && engine="$E[${INDV}G| ${!engine}" url=URL_$s url=${!url% *} - echo " $d$s $E[${IND}G- $url$engine" + echo " $d$s $E[${IND}G| $url$engine" done | sort } |