Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $EUID -ne 0 ]; then
  4.     echo "Fuck off, you're not root"
  5.     exit 1
  6. fi
  7.  
  8.  
  9. # Copy shit to your $HOME directory
  10. if [ $# -ne 1 ]; then
  11.     echo "Specify directory to copy to"
  12.     exit 1
  13. else
  14.     COPYTO="$1"
  15. fi
  16.  
  17. cp *.png "$COPYTO"
  18. cd "$COPYTO"
  19. chown tjaarda:tjaarda *.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement