Friendica: console throws error in output

Created on 24 Mar 2018  Â·  3Comments  Â·  Source: friendica/friendica

When running

bin/console --help

in the current development version I get the following error on Debian Stable

bin/console: 5: bin/console: [[: not found

After that the call to bin/console.php works as expected.

Bug

Most helpful comment

I just got the same problem. There is actually two errors, as far as I can see:

The error message in friendica is wrong:

The database update failed. Please run "php bin/console dbstructure update" from the command line and have a look at the errors that might appear.

  1. It should read php -f bin/console.php dbstructure update instead, or bin/console dbstructure update (but I better like the first version, which is more portable)
  2. bin/console is a Bash script, but is declared as an sh script

All 3 comments

I just got the same problem. There is actually two errors, as far as I can see:

The error message in friendica is wrong:

The database update failed. Please run "php bin/console dbstructure update" from the command line and have a look at the errors that might appear.

  1. It should read php -f bin/console.php dbstructure update instead, or bin/console dbstructure update (but I better like the first version, which is more portable)
  2. bin/console is a Bash script, but is declared as an sh script

The first part should be fixed in https://github.com/friendica/friendica/pull/4667

2, bin/console is a Bash script, but is declared as an sh script

This can be fixed by replacing the hash bang by #!/bin/bash in bin/console.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlfredSK picture AlfredSK  Â·  3Comments

VVelox picture VVelox  Â·  3Comments

tobiasd picture tobiasd  Â·  3Comments

cyfyrifilefe picture cyfyrifilefe  Â·  3Comments

AlfredSK picture AlfredSK  Â·  3Comments