Guest User

Untitled

a guest
Jan 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. file="$1"
  4. option="$2"
  5. shift 2
  6.  
  7. . $file
  8.  
  9. if eval "[[ \${$option:+1} ]]"; then
  10.   eval "echo \${$option}"
  11. else
  12.   echo "$*"
  13. fi
Add Comment
Please, Sign In to add comment