From 75924194bc5782bd5944d1f7f1d90a17f46593fc Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 12 Feb 2021 12:24:41 +0100 Subject: [PATCH] Update translate-file.ps1 --- Scripts/translate-file.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/translate-file.ps1 b/Scripts/translate-file.ps1 index becfdef9..190f2e68 100755 --- a/Scripts/translate-file.ps1 +++ b/Scripts/translate-file.ps1 @@ -6,11 +6,11 @@ .NOTES Author: Markus Fleschutz / License: CC0 #> -param([string]$SourceFile = "", [string]$SourceLanguage = "", [string]$TargetLanguage = "") - -$PathToRepo = "$PSScriptRoot/.." +param($SourceFile = "", $SourceLanguage = "", $TargetLanguage = "") try { + $PathToRepo = "$PSScriptRoot/.." + if ($SourceFile -eq "" ) { $SourceFile = read-host "Enter path to file" }