Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. files_in_dir() {
  2. #function to check if provided virtualenv is not empty
  3. shopt -s nullglob dotglob;
  4. files=("$virtualenv_path_arg"/*);
  5. if (( ${#files[*]} ));then
  6. return true;
  7. else
  8. return false;
  9. shopt -u nullglob dotglob
  10. fi
  11. }
  12.  
  13. another_function {
  14.  
  15. if [ files_in_dir = true ]
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement