Advertisement
GrueMaster

Untitled

Apr 24th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. def call(fileName) {
  2. sh script: '''#!/bin/bash
  3. echo File ${fileName} passed
  4. if [ -e \'${fileName}\' ]; then
  5. echo "File: ${fileName} exists"
  6. else
  7. echo "File: ${fileName} does not exist"
  8. fi
  9. '''
  10. return true
  11. }
  12.  
  13. # func("somefile)
  14. # generates "File somefile" followed by a bash error "passed command not found" followed by "File: somefile does not exist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement