Author: justi9
Date: 2008-10-21 10:26:50 -0400 (Tue, 21 Oct 2008)
New Revision: 2668
Modified:
mgmt/trunk/bin/devel-check
Log:
Some more information, available from a verbose mode
Modified: mgmt/trunk/bin/devel-check
===================================================================
--- mgmt/trunk/bin/devel-check 2008-10-21 13:20:33 UTC (rev 2667)
+++ mgmt/trunk/bin/devel-check 2008-10-21 14:26:50 UTC (rev 2668)
@@ -18,7 +18,7 @@
echo " $path"
}
-test "$1" = "-v" && {
+test "$1" = "--verbose" -o "$1" = "-v" &&
{
verbose=1
}
@@ -68,8 +68,17 @@
echo "== Database =="
-which psql
+which psql && {
+ test "$verbose" && psql -l
-psql -d cumin -U cumin -h localhost -c "\q" && {
- psql -d cumin -U cumin -h localhost -c "select * from mint_info;"
+ psql -d cumin -U cumin -h localhost -c "\q" && {
+ psql -d cumin -U cumin -h localhost -c "select * from mint_info;"
+
+ test "$verbose" && {
+ psql -d cumin -U cumin -h localhost <<EOF
+\pset pager
+\dt+
+EOF
+ }
+ }
}
Show replies by date