summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-08-10 16:33:32 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-08-10 16:33:32 +0400
commit5af2fb46368ea6a45e6dd334402efe03546f7ecf (patch)
treed27c3f2bf9d321ef14ef57d5a0221329ffbb8c37 /scripts
parentb11e3c427dedadb67dba8d2f82951c57acdd6874 (diff)
shot: update
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/shot4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/shot b/scripts/shot
index f87d95f..67ad849 100755
--- a/scripts/shot
+++ b/scripts/shot
@@ -30,6 +30,10 @@ run() {
exit 0
}
+if ! command -v scrot > /dev/null 2>&1; then
+ err "${0}: scrot must be installed"
+fi
+
default_dir="${HOME}"/pics/screenshots
s_flg=""