Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

bash declare must be in first line , docker build on Ubuntu failed #35

Open
racheliurui opened this issue Apr 5, 2020 · 0 comments
Open

Comments

@racheliurui
Copy link

Building on aws Ubuntu server, hit 2 issues,

issue 1

## fix the [[ and warning, select No to use bash instead of sh
sudo dpkg-reconfigure dash

issue 2

/root/ros_install.sh: 23: /root/ros_install.sh: Syntax error: "(" unexpected

After check, found the copy right declaration occupied the first line of bash declaration.
This will make the #!/bin/bash declaration invalid.
After change the sequence, solved the problem.

@racheliurui racheliurui changed the title bash declare must be in first line of the sh , docker build on Ubuntu failed bash declare must be in first line , docker build on Ubuntu failed Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant