From eb714629bf35e45d21d221db0267ddbe0821ae2e Mon Sep 17 00:00:00 2001 From: kendfss Date: Mon, 9 Nov 2020 17:22:18 +0100 Subject: [PATCH] The touch script was getting trapped in WSL, but now it successfully executes the 'foreach' loop. --- touch.ps1 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/touch.ps1 b/touch.ps1 index b968a0d..a907c4e 100644 --- a/touch.ps1 +++ b/touch.ps1 @@ -1,8 +1,7 @@ -$origin = location -$origin +# $origin = location + +# pout $PSCommandPath + foreach ($arg in $args) { - kali - cd $origin - touch $arg - exit 0 + wsl touch $arg } \ No newline at end of file