8309b0a19baa351d643194f897d59de7b3d3b3dd
- Author
- Eduardo San Martin Morote <posva13@gmail.com>
- Committer
- Eduardo San Martin Morote <posva13@gmail.com>
- Date
Message
Verification of convert inside the function
Depending on when the path is declared this solution would work in any case
Diff
1diff --git a/plugins/catimg/catimg.plugin.zsh b/plugins/catimg/catimg.plugin.zsh
2index 70ef9a63cbb71763fe7279230acd193166c98475..cb92f5986bed461891798be5019ee45b3b53c3d2 100644
3--- a/plugins/catimg/catimg.plugin.zsh
4+++ b/plugins/catimg/catimg.plugin.zsh
5@@ -7,10 +7,11 @@
6 # Github: https://github.com/posva/catimg #
7 ################################################################################
8
9-if [[ -x `which convert` ]]; then
10- function catimg() {
11+
12+function catimg() {
13+ if [[ -x `which convert` ]]; then
14 zsh $ZSH/plugins/catimg/catimg.sh $@
15- }
16-else
17- echo "catimg need convert (ImageMagick) to work)"
18-fi
19+ else
20+ echo "catimg need convert (ImageMagick) to work)"
21+ fi
22+}