git.slaskete.net
/
einar-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b4166a
)
Fix bug
author
Einar Jørgen Haraldseid
<einar.haraldseid@ntnu.no>
Thu, 3 Oct 2019 06:42:37 +0000
(08:42 +0200)
committer
Einar Jørgen Haraldseid
<einar.haraldseid@ntnu.no>
Thu, 3 Oct 2019 06:42:37 +0000
(08:42 +0200)
screenshot.sh
patch
|
blob
|
history
diff --git
a/screenshot.sh
b/screenshot.sh
index e3b0037baf5ae7dacd71e726f91655b98acf76bd..842ff348b2a035c9e6305a22e205cc18afee4ac3 100755
(executable)
--- a/
screenshot.sh
+++ b/
screenshot.sh
@@
-20,7
+20,7
@@
function errcho() {
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
if [ "$(file -b --mime-type "/tmp/${FileName}")" == "image/png" ]; then
mv "/tmp/${FileName}" "${LocalPath}/"