deployer icon indicating copy to clipboard operation
deployer copied to clipboard

deployer seem's not to be receiving the answer from the bash pipe for interactive questions

Open danielzzz opened this issue 3 years ago • 0 comments

  • Deployer version: Deployer 6.8.0
  • Deployment OS: ubuntu 20.04

hi, when I try to execute the script in CD with predefined answer it always renders "no".


yes | dep testConfirmation myHost


//hosts omitted for brevity

task('testConfirmation', function () {
   if (askConfirmation('yes?')) {
       die("yes \n");
   } else {
       die("no\n");
   }
});

cheers, dan

danielzzz avatar May 09 '22 18:05 danielzzz