Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- i=1;
- sp="/-|";
- no_config=true;
- echo "type "continue" to exit this while loop if you feel the conditions for continuing sucessfully have been met... "
- while $no_config;
- do printf "b${sp:i++%${#sp}:1}";
- [[ ! $(pidof SupremeCommande) && -f ~/My Documents/newfile ]] && no_config=false;
- sleep 1;
- done;
- no_config=true;
- while $no_config;
- do printf "b${sp:i++%${#sp}:1}";
- read -r typed_continue;
- [[ ! $(pidof SupremeCommande) && -f ~/My Documents/newfile && "$typed_continue" = "continue" ]] && no_config=false;
- sleep 1;
- done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement