Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Verification of convert inside the function

Depending on when the path is declared this solution would work in any case
  • Loading branch information...
commit 8309b0a19baa351d643194f897d59de7b3d3b3dd 1 parent 44b23ae
Eduardo San Martin Morote posva authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 plugins/catimg/catimg.plugin.zsh
13 plugins/catimg/catimg.plugin.zsh
View
@@ -7,10 +7,11 @@
# Github: https://github.com/posva/catimg #
################################################################################
-if [[ -x `which convert` ]]; then
- function catimg() {
+
+function catimg() {
+ if [[ -x `which convert` ]]; then
zsh $ZSH/plugins/catimg/catimg.sh $@
- }
-else
- echo "catimg need convert (ImageMagick) to work)"
-fi
+ else
+ echo "catimg need convert (ImageMagick) to work)"
+ fi
+}
Please sign in to comment.
Something went wrong with that request. Please try again.