Newer
Older
dub_jkp / test / issue1158-stdin-for-single-files.sh
@andre2007 andre2007 on 7 Aug 2018 251 bytes issue1158-stdin-for-single-files
  1. #!/usr/bin/env bash
  2.  
  3. . $(dirname "${BASH_SOURCE[0]}")/common.sh
  4.  
  5. cd ${CURR_DIR}/issue1158-stdin-for-single-files
  6.  
  7. if ! { cat stdin.d | ${DUB} - --value=v 2>&1 || true; } | grep -cF '["--value=v"]'; then
  8. die $LINENO 'Stdin for single files failed.'
  9. fi