From affbbba82b711577e5b9030d4d12588d3728dae1 Mon Sep 17 00:00:00 2001 From: yage Date: Sat, 8 Jan 2022 11:34:49 -0700 Subject: [PATCH] don't list dirs if they don't exist' --- global.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/global.zsh b/global.zsh index 57d290e..815f913 100644 --- a/global.zsh +++ b/global.zsh @@ -25,6 +25,7 @@ _CA_LIST() { { for base_dir in $CA__DIRS do + [ ! -d $base_dir ] && continue { cd $base_dir; ls -d *; } \ | awk '{print "'$(basename $base_dir)/'"$1;}' done