jerry000lin opened a new issue, #37662:
URL: https://github.com/apache/superset/issues/37662

   ### Bug description
   
   
   
   In `docker/docker-frontend.sh` (Superset `6.0.0`, commit `6a1c30e5e7`), the 
script uses backticks inside double-quoted `echo`, e.g. `echo "Running \`npm 
install`"`and`echo "Running `npm run prune`"`. In bash/POSIX shell, backticks 
perform command substitution even inside double quotes, so the commands inside 
backticks are executed before `echo`.
   
   As a result, `npm run prune` (when enabled) and `npm install` are executed 
twice: once via command substitution in the `echo` line and once again on the 
following explicit command line. The first `npm install` stdout is also 
captured, making it look like `npm install` has little/no progress output. 
Expected behavior is to only print the message and run each npm command once.
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   6.0.0
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to