Dr.Avalanche
Dr.Avalanche

Reputation: 2006

'unexpected redirection' within bash script in chroot environment

In a batch script I have things like:

sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password PASSWORDHERE'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password PASSWORDHERE'

Which throws the error message unexpected redirection associated with such lines, why is this happening and how can I get around it?

Upvotes: 0

Views: 178

Answers (1)

Karoly Horvath
Karoly Horvath

Reputation: 96276

You're probably running under a different shell (e.g.: plain sh)

Execute the script with bash.

Upvotes: 1

Related Questions