git.slaskete.net
/
einar-bin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix keychain partition list for macOS 12->
[einar-bin]
/
screenshot.sh
diff --git
a/screenshot.sh
b/screenshot.sh
index ec1931b80ee1db39c262f5d64d7636960fc74521..842ff348b2a035c9e6305a22e205cc18afee4ac3 100755
(executable)
--- a/
screenshot.sh
+++ b/
screenshot.sh
@@
-20,9
+20,9
@@
function errcho() {
function take_screenshot() {
FileName="$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 6 | head -n 1).png"
function take_screenshot() {
FileName="$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 6 | head -n 1).png"
- if [ "$
@
" = "clipboard" ]; then
+ if [ "$
*
" = "clipboard" ]; then
xclip -out -selection clipboard -t image/png > "/tmp/${FileName}" 2>/dev/null
xclip -out -selection clipboard -t image/png > "/tmp/${FileName}" 2>/dev/null
- if [ "$(file -b --mime-type
/tmp/${FileName}
)" == "image/png" ]; then
+ if [ "$(file -b --mime-type
"/tmp/${FileName}"
)" == "image/png" ]; then
mv "/tmp/${FileName}" "${LocalPath}/"
else
rm "/tmp/${FileName}"
mv "/tmp/${FileName}" "${LocalPath}/"
else
rm "/tmp/${FileName}"