daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. function install_crds(){
  4.     echo "My WORK!!!"
  5. }
  6.  
  7. function wait_time(){
  8.     secs=$1
  9.     while [ $secs -gt 0 ]; do
  10.        echo -ne "    WAIT $secs\033[0K\r"
  11.        sleep 1
  12.        : $((secs--))
  13.     done
  14. }
  15.  
  16.  
  17. echo
  18. echo
  19. read -r -p "    Excecute? [y/N] " response
  20. case "$response" in
  21.     [yY][eE][sS]|[yY])
  22.         install_crds
  23.  
  24.         echo
  25.         echo
  26.         wait_time 5
  27.         echo
  28.         ;;
  29.     *)
  30.         echo
  31.         echo "    NO INSTALL"
  32.  
  33.         ;;
  34. esac
  35.  
  36. ### Another exec...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top