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