Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. i=1;
  4. sp="/-|";
  5. no_config=true;
  6. echo "type "continue" to exit this while loop if you feel the conditions for continuing sucessfully have been met... "
  7. while $no_config;
  8. do printf "b${sp:i++%${#sp}:1}";
  9. [[ ! $(pidof SupremeCommande) && -f ~/My Documents/newfile ]] && no_config=false;
  10. sleep 1;
  11. done;
  12.  
  13. no_config=true;
  14. while $no_config;
  15. do printf "b${sp:i++%${#sp}:1}";
  16. read -r typed_continue;
  17. [[ ! $(pidof SupremeCommande) && -f ~/My Documents/newfile && "$typed_continue" = "continue" ]] && no_config=false;
  18. sleep 1;
  19. done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement