don't list dirs if they don't exist'

This commit is contained in:
yage 2022-01-08 11:34:49 -07:00
parent 39927b6c7e
commit affbbba82b

View File

@ -25,6 +25,7 @@ _CA_LIST() {
{ {
for base_dir in $CA__DIRS for base_dir in $CA__DIRS
do do
[ ! -d $base_dir ] && continue
{ cd $base_dir; ls -d *; } \ { cd $base_dir; ls -d *; } \
| awk '{print "'$(basename $base_dir)/'"$1;}' | awk '{print "'$(basename $base_dir)/'"$1;}'
done done