From 7e271470d3a2f346b0f4ca60bdefa600ef7a5646 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Wed, 18 Mar 2026 08:37:28 -0500 Subject: [PATCH] + dir exist checks --- dots/bin/importGnupgKeys.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dots/bin/importGnupgKeys.sh b/dots/bin/importGnupgKeys.sh index 8a6e0e3..20d6938 100755 --- a/dots/bin/importGnupgKeys.sh +++ b/dots/bin/importGnupgKeys.sh @@ -8,6 +8,16 @@ tmp_dir=/tmp this_file_name=`basename "$0"` echo "$this_file_name" +if [ ! -d ${src_dir} ]; then + echo "error: missing directory '${src_dir}'" + exit 1 +fi + +if [ ! -d ${tmp_dir} ]; then + echo "error: missing directory '${tmp_dir}'" + exit 1 +fi + echo "please, remember the hint: bibL2" # copy .zip.gpg to tmp dir