diff --git a/bin/pwdb b/bin/pwdb index d80157e..35cb5a0 100755 --- a/bin/pwdb +++ b/bin/pwdb @@ -38,6 +38,9 @@ EOF exit ${1:-0} } +# Let -i option default to number of CPU cores, use the output of nproc for this. +JOBS=$(nproc) + db_exec() { echo "psql -h $TARGET -xU root -d ${2:-postgres} -c \"$1\""