danix
's git repository
home
/
my projects
/
danix.xyz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed type to 'article' for single posts in blog. Updated theme.
[danix.xyz.git]
/
content
/
articles
/
gify-back-to-bash-scripting.md
diff --git
a/content/articles/gify-back-to-bash-scripting.md
b/content/articles/gify-back-to-bash-scripting.md
index
6737a63
..
7c0055e
100644
(file)
--- a/
content/articles/gify-back-to-bash-scripting.md
+++ b/
content/articles/gify-back-to-bash-scripting.md
@@
-1,7
+1,7
@@
---
title: gify.sh – back to bash scripting
author: Danilo M.
---
title: gify.sh – back to bash scripting
author: Danilo M.
-type:
post
+type:
article
date: 2016-01-25T12:41:06+00:00
featured_image: /uploads/2016/01/G0092546.jpg
categories:
date: 2016-01-25T12:41:06+00:00
featured_image: /uploads/2016/01/G0092546.jpg
categories:
@@
-74,7
+74,7
@@
Enjoy!
# #
#--------------------------------------------------------------------------------#
# #
#--------------------------------------------------------------------------------#
-# ERROR & EXIT STATUSES
+# ERROR & EXIT STATUSES
#
SHOWHELP=61
USERABORTED=62
SHOWHELP=61
USERABORTED=62
@@
-85,19
+85,19
@@
E_FILEXISTS=74
E_NOIMAGES=75
E_UNKNOWNOPT=76
E_NOIMAGES=75
E_UNKNOWNOPT=76
-# TOOLS
+# TOOLS
#
PWD=$(pwd)
MOGRIFY=$(which mogrify)
CONVERT=$(which convert)
PWD=$(pwd)
MOGRIFY=$(which mogrify)
CONVERT=$(which convert)
-# we need mogrify and convert from the imagemagik toolset for this script to work
+# we need mogrify and convert from the imagemagik toolset for this script to work
#
if [[ ! -x $MOGRIFY || ! -x $CONVERT ]]; then
showerror missingdeps
exit $E_MISSINGDEPS
fi
if [[ ! -x $MOGRIFY || ! -x $CONVERT ]]; then
showerror missingdeps
exit $E_MISSINGDEPS
fi
-# showhelp
+# showhelp
#
showhelp ()
{
case $1 in
showhelp ()
{
case $1 in
@@
-131,7
+131,7
@@
case $1 in
esac
}
esac
}
-# showerror
+# showerror
#
showerror ()
{
if [ -z $1 ];then
showerror ()
{
if [ -z $1 ];then