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'