Révision f00c44d8
Fix for database name containing underscore(s).
| plugins/other/postgres_queries2_ | ||
|---|---|---|
| 1 | 1 |
#!/bin/bash |
| 2 | 2 |
|
| 3 | 3 |
|
| 4 |
db="${0/*_/}"
|
|
| 4 |
db=$(basename $0 | sed 's/^postgres_queries2_//g')
|
|
| 5 | 5 |
if [ "$db" == "" ];then |
| 6 | 6 |
echo "error/no db" >&2 |
| 7 | 7 |
exit 1 |
Formats disponibles : Unified diff