From 5878d8e6fd63eb3c3464d48a21f9634717edbfa1 Mon Sep 17 00:00:00 2001 From: Babil Golam Sarwar Date: Wed, 16 May 2018 04:39:32 +1000 Subject: [PATCH] Fix some minor typo and lint errors --- native/win_install.ps1 | 18 ++++++++---------- scripts/build.sh | 4 ++-- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/native/win_install.ps1 b/native/win_install.ps1 index 6ad9d183..a9dec184 100644 --- a/native/win_install.ps1 +++ b/native/win_install.ps1 @@ -141,11 +141,11 @@ function Set-InstallDir() { $result = Test-TridactylPath $messengerInstallDir if ($result -eq $true) { Write-Host ` - " - Create $messengerInstallDir successful!" + " - Creating $messengerInstallDir was successful!" return $true } else { Write-Host ` - " - Create $messengerInstallDir failed, quitting ..." + " - Creating $messengerInstallDir failed, quitting ..." exit -1 } } @@ -211,11 +211,11 @@ function Set-MessengerBin() { $result = Test-TridactylPath -Path $messengerBinPath if ($result -eq $true) { Write-Host ` - " - Create $messengerBinPath was successful!" + " - Creating $messengerBinPath was successful!" return $true } else { Write-Host ` - " - Create $messengerBinPath failed, quitting ..." + " - Creating $messengerBinPath failed, quitting ..." exit -1 } } @@ -248,13 +248,13 @@ call py -3 -u $messengerBinPath $result = Test-TridactylPath -Path $messengerBinWrapperPath if ($result -eq $true) { $msg = [string]::Format( - " - Create {0} failed, was successful!", + " - Creating {0} was successful!", $messengerBinWrapperPath) Write-Host $msg return $true } else { $msg = [string]::Format( - " - Create {0} failed, quitting ...", + " - Creating {0} failed, quitting ...", $messengerBinWrapperPath) Write-Host $msg exit -1 @@ -324,12 +324,12 @@ function Set-MessengerManifest() { if ($result -eq $true) { $msg = [string]::Format( - " - Create {0} was successful!", + " - Creating {0} was successful!", $messengerManifestPath) Write-Host $msg } else { $msg = [string]::Format( - " - Create {0} failed, quitting ...", + " - Creating {0} failed, quitting ...", $messengerManifestPath) Write-Host $msg exit -1 @@ -387,8 +387,6 @@ function Get-MessengerManifestRegistryValue(){ } function Remove-MessengerManifestRegistry() { - $messengerManifestPath = Get-MessengerManifestPath - $msg = [string]::Format("[+] Removing registry key {0} ...", $global:MessengerManifestRegistryPath) diff --git a/scripts/build.sh b/scripts/build.sh index 0109ff06..a40c8dbd 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -29,9 +29,9 @@ mkdir -p generated/static mkdir -p generated/static/clippy if [ "$(isWindowsMinGW)" == "True" ]; then - $WIN_PYTHON -3 scripts/excmds_macros.py + $WIN_PYTHON scripts/excmds_macros.py else - python3 scripts/excmds_macros.py + scripts/excmds_macros.py fi scripts/newtab.md.sh scripts/make_tutorial.sh