From f00c44d8af918b3a67bfbec36e99755ba3612c2b Mon Sep 17 00:00:00 2001 From: Christoph Krybus Date: Sun, 15 Jan 2012 11:29:14 +0100 Subject: [PATCH] Fix for database name containing underscore(s). --- plugins/other/postgres_queries2_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/other/postgres_queries2_ b/plugins/other/postgres_queries2_ index 1f4a207a..c5a95671 100755 --- a/plugins/other/postgres_queries2_ +++ b/plugins/other/postgres_queries2_ @@ -1,7 +1,7 @@ #!/bin/bash -db="${0/*_/}" +db=$(basename $0 | sed 's/^postgres_queries2_//g') if [ "$db" == "" ];then echo "error/no db" >&2 exit 1