dashman icon indicating copy to clipboard operation
dashman copied to clipboard

no wait from prompt when embbeding dashman in another Bash script

Open jlsam opened this issue 6 years ago • 0 comments

I'm trying to automate the configuration of a new VPS, including updating the system, creating users, firewall rules, etc. I was testing dashman to speed up coding, but the script doesn't wait for the Y/n prompt and just plows ahead as if the job is done - and of course, errors appear.

I've been testing variations with the 'wait' command, but I guess the spawning of multiple sequential processes from the same command line makes wait move on after the first one is successfully completed. Do you know a simple way I could implement this, so that the main script behaves correctly and waits for all processes to finish before advancing?

I also see in the code options for unattended installation (so skipping prompts and yes-ing everything?), but I didn't see any instructions in the Readme (and didn't look too hard in the code, sry). Would this help?

jlsam avatar Apr 23 '18 14:04 jlsam