cli icon indicating copy to clipboard operation
cli copied to clipboard

Double quote for bash command is wrong pattern for UNIX system

Open vldmr-k opened this issue 3 years ago • 2 comments

Last version 3.3.3 broken commands for UNIX system, details below

When I tried run phpbu last version 6.0.15 I saw the throw:

` Exception 'RuntimeException' with message 'Command failed: exit-code: 127 message: sh: 1: PGPASSWORD=1 /usr/bin/pg_dump: not found

' in /home/****/vendor/sebastianfeldmann/cli/src/Command/Runner/Simple.php:61 `

Problem with double quote

"PGPASSWORD='1' /usr/bin/pg_dump" -w --username='postgres' --host='localhost' --dbname='****' --no-owner --file='***pgdump-20211020-1819.sql' --format='p'

Wrong

"PGPASSWORD='1' /usr/bin/pg_dump" 

Correct

PGPASSWORD='1' /usr/bin/pg_dump

vldmr-k avatar Oct 20 '21 15:10 vldmr-k