From 54ef41337dd616890aab179070a40e1d5257d429 Mon Sep 17 00:00:00 2001 From: Francesco Zardi Date: Mon, 9 Sep 2024 10:20:49 +0200 Subject: [PATCH] Change variable scope from "local" to "function" --- conf.d/done.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.d/done.fish b/conf.d/done.fish index 3f9f0d3..5d410a0 100644 --- a/conf.d/done.fish +++ b/conf.d/done.fish @@ -27,12 +27,12 @@ end set -g __done_version 1.19.3 function __done_run_powershell_script - set -l powershell_exe (command --search "powershell.exe") + set -f powershell_exe (command --search "powershell.exe") if test $status -ne 0 and command --search wslvar - set -l powershell_exe (wslpath (wslvar windir)/System32/WindowsPowerShell/v1.0/powershell.exe) + set -f powershell_exe (wslpath (wslvar windir)/System32/WindowsPowerShell/v1.0/powershell.exe) end if string length --quiet "$powershell_exe"