Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
- #!/bin/bash
-
- location="$1"
-
- mkdir -p "$(echo "$location" | sed 's|/[^/]*$||g')"
- xclip -selection clipboard -t image/png -o 2> /dev/null > $location
-
- if [ ! "$?" = "0" ]; then
- printf "An error occured"
- rm -f "$location"
- exit 1
- fi
-
- printf "%s" "$location"
-
|