tI should have had a V8 this morning. - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit b8f7bbdac37deab5cd6fac194664a8b77e35fb83
(DIR) parent e03dc461221b69a28fc25676bc3e9bbe201e6dd8
(HTM) Author: Willy Goiffon <w.goiffon@gmail.com>
Date: Tue, 24 Sep 2013 13:33:55 +0200
I should have had a V8 this morning.
Diffstat:
M instagram | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/instagram b/instagram
t@@ -1,9 +1,16 @@
#!/bin/bash
+#
+# 2013 Willy 'z3bra' Goiffon <willy at mailoo dot org>
+#
+# INSTAGRAM - screenshot taker / manager
+#
IMAGE_DIR=~/usr/img
-UPLOAD_BIN=~/bin/upload
+EXEC_UPLOAD=~/bin/upload
SSHOT_DIR=${IMAGE_DIR}/wm
+source ~/.config/instagram
+
function usage() {
cat <<SHBLAH
Usage : instagram [-tmuh] [-g number] [-s screen] [filename.png]
t@@ -18,15 +25,13 @@ Usage : instagram [-tmuh] [-g number] [-s screen] [filename.png]
Remember to add an extension at the end of the command
Also, do not give path to shot. They're saved to $SSHOT_DIR by default.
SHBLAH
-
-exit 0
}
function upload() {
- ~/bin/upload $1
+ $EXEC_UPLOAD $1
}
-[[ "$1" = "--help" ]] && usage
+[[ "$1" = "--help" ]] && usage && exit 0
while getopts ":htmud:g:s:" opt; do
case $opt in