From 607e61994b672a82c306df1dcf8547827661b08d Mon Sep 17 00:00:00 2001
From: Davide Depau <davide@depau.eu>
Date: Sat, 7 Sep 2019 02:09:19 +0200
Subject: [PATCH] Show error if SecureCRT was not found

---
 shcrt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/shcrt b/shcrt
index ed5af97..7705661 100755
--- a/shcrt
+++ b/shcrt
@@ -245,6 +245,10 @@ function scrt_session {
 }
 
 function main {
+  if [ ! -d "$session_path" ]; then
+    alert_message "SecureCRT session path not found.\nLooked for it at:\n$session_path"
+    return 1
+  fi
   scrt_menu
 }