diff options
Diffstat (limited to '')
-rw-r--r-- | bin/up.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/up.sh b/bin/up.sh index 562ab489..f55213d4 100644 --- a/bin/up.sh +++ b/bin/up.sh @@ -40,7 +40,11 @@ uploadHilex() { uploadScreen() { temp - screencapture -i "$@" "${temp}/capture.png" + if type screencapture >/dev/null; then + screencapture -i "$@" "${temp}/capture.png" + else + scrot -s "$@" "${temp}/capture.png" + fi pngo "${temp}/capture.png" || true upload "${temp}/capture.png" } |