Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $EUID -ne 0 ]; then
- echo "Fuck off, you're not root"
- exit 1
- fi
- # Copy shit to your $HOME directory
- if [ $# -ne 1 ]; then
- echo "Specify directory to copy to"
- exit 1
- else
- COPYTO="$1"
- fi
- cp *.png "$COPYTO"
- cd "$COPYTO"
- chown tjaarda:tjaarda *.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement