Skip to content

Commit cac33d7

Browse files
committed
Remove all spaces around DB owner name
1 parent ae0bf59 commit cac33d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/restore.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ -z "${result}" ]; then
2626
else
2727
message="finding current owner of DB ${DB_NAME}"
2828
echo "${MYNAME}: ${message}"
29-
db_owner=$(psql --host=${DB_HOST} --username=${DB_ROOTUSER} --command='\list' | grep ${DB_NAME} | cut -d '|' -f 2 | sed -e 's/ *//')
29+
db_owner=$(psql --host=${DB_HOST} --username=${DB_ROOTUSER} --command='\list' | grep ${DB_NAME} | cut -d '|' -f 2 | sed -e 's/ *//g')
3030
message="Database owner is ${db_owner}"
3131
echo "${MYNAME}: INFO: ${message}"
3232

0 commit comments

Comments
 (0)