From 2d6965f85645ea489b0adf8ce6a79dd55036d883 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Tue, 26 May 2020 17:59:45 +0200 Subject: Fix load of various plugins: fastfile, keychain, sfffe, stack --- plugins/sfffe/sfffe.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/sfffe') diff --git a/plugins/sfffe/sfffe.plugin.zsh b/plugins/sfffe/sfffe.plugin.zsh index a0f034908..177e5fa2f 100644 --- a/plugins/sfffe/sfffe.plugin.zsh +++ b/plugins/sfffe/sfffe.plugin.zsh @@ -6,9 +6,9 @@ # REQUIRE: ack # ------------------------------------------------------------------------------ -if [ ! -x $(which ack) ]; then - echo \'ack\' is not installed! - exit -1 +if (( ! $+commands[ack] )); then + echo "'ack' is not installed!" + return fi ajs() { -- cgit v1.2.3-70-g09d2