简体   繁体   中英

'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?

You're probably running under a different shell (eg: plain sh )

Execute the script with bash .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM