From a8bd8875550463537145139ca0fbe655ca836beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taylan=20G=C3=B6kkaya?= Date: Mon, 10 Jul 2023 02:21:35 +0300 Subject: [PATCH] fix: fixed issue #4 --- Dotenv/Daemon.cs | 1 + module/Dotenv.psd1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dotenv/Daemon.cs b/Dotenv/Daemon.cs index 2f95061..3728f37 100644 --- a/Dotenv/Daemon.cs +++ b/Dotenv/Daemon.cs @@ -89,6 +89,7 @@ public void Clear() { public void Update(string pwd) { this.log.Debug($"update called in {pwd}"); + if(String.IsNullOrEmpty(pwd)) return; this.lastdir = pwd; if (!this._enabled || this._names.Count == 0) { this.log.Debug("nothing to do because the module is disabled or there are no names"); diff --git a/module/Dotenv.psd1 b/module/Dotenv.psd1 index ebc30b8..0a8a180 100644 --- a/module/Dotenv.psd1 +++ b/module/Dotenv.psd1 @@ -1,6 +1,6 @@ @{ RootModule = "Dotenv.psm1" - ModuleVersion = "1.0.1" + ModuleVersion = "1.0.2" Author = "Taylan Gökkaya" CompatiblePSEditions = @("Core") GUID = '3bb5d7a3-985c-4d74-a329-8dddb075e322'