mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Fix some minor typo and lint errors
This commit is contained in:
parent
527546bf23
commit
5878d8e6fd
2 changed files with 10 additions and 12 deletions
|
@ -141,11 +141,11 @@ function Set-InstallDir() {
|
||||||
$result = Test-TridactylPath $messengerInstallDir
|
$result = Test-TridactylPath $messengerInstallDir
|
||||||
if ($result -eq $true) {
|
if ($result -eq $true) {
|
||||||
Write-Host `
|
Write-Host `
|
||||||
" - Create $messengerInstallDir successful!"
|
" - Creating $messengerInstallDir was successful!"
|
||||||
return $true
|
return $true
|
||||||
} else {
|
} else {
|
||||||
Write-Host `
|
Write-Host `
|
||||||
" - Create $messengerInstallDir failed, quitting ..."
|
" - Creating $messengerInstallDir failed, quitting ..."
|
||||||
exit -1
|
exit -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -211,11 +211,11 @@ function Set-MessengerBin() {
|
||||||
$result = Test-TridactylPath -Path $messengerBinPath
|
$result = Test-TridactylPath -Path $messengerBinPath
|
||||||
if ($result -eq $true) {
|
if ($result -eq $true) {
|
||||||
Write-Host `
|
Write-Host `
|
||||||
" - Create $messengerBinPath was successful!"
|
" - Creating $messengerBinPath was successful!"
|
||||||
return $true
|
return $true
|
||||||
} else {
|
} else {
|
||||||
Write-Host `
|
Write-Host `
|
||||||
" - Create $messengerBinPath failed, quitting ..."
|
" - Creating $messengerBinPath failed, quitting ..."
|
||||||
exit -1
|
exit -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -248,13 +248,13 @@ call py -3 -u $messengerBinPath
|
||||||
$result = Test-TridactylPath -Path $messengerBinWrapperPath
|
$result = Test-TridactylPath -Path $messengerBinWrapperPath
|
||||||
if ($result -eq $true) {
|
if ($result -eq $true) {
|
||||||
$msg = [string]::Format(
|
$msg = [string]::Format(
|
||||||
" - Create {0} failed, was successful!",
|
" - Creating {0} was successful!",
|
||||||
$messengerBinWrapperPath)
|
$messengerBinWrapperPath)
|
||||||
Write-Host $msg
|
Write-Host $msg
|
||||||
return $true
|
return $true
|
||||||
} else {
|
} else {
|
||||||
$msg = [string]::Format(
|
$msg = [string]::Format(
|
||||||
" - Create {0} failed, quitting ...",
|
" - Creating {0} failed, quitting ...",
|
||||||
$messengerBinWrapperPath)
|
$messengerBinWrapperPath)
|
||||||
Write-Host $msg
|
Write-Host $msg
|
||||||
exit -1
|
exit -1
|
||||||
|
@ -324,12 +324,12 @@ function Set-MessengerManifest() {
|
||||||
|
|
||||||
if ($result -eq $true) {
|
if ($result -eq $true) {
|
||||||
$msg = [string]::Format(
|
$msg = [string]::Format(
|
||||||
" - Create {0} was successful!",
|
" - Creating {0} was successful!",
|
||||||
$messengerManifestPath)
|
$messengerManifestPath)
|
||||||
Write-Host $msg
|
Write-Host $msg
|
||||||
} else {
|
} else {
|
||||||
$msg = [string]::Format(
|
$msg = [string]::Format(
|
||||||
" - Create {0} failed, quitting ...",
|
" - Creating {0} failed, quitting ...",
|
||||||
$messengerManifestPath)
|
$messengerManifestPath)
|
||||||
Write-Host $msg
|
Write-Host $msg
|
||||||
exit -1
|
exit -1
|
||||||
|
@ -387,8 +387,6 @@ function Get-MessengerManifestRegistryValue(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function Remove-MessengerManifestRegistry() {
|
function Remove-MessengerManifestRegistry() {
|
||||||
$messengerManifestPath = Get-MessengerManifestPath
|
|
||||||
|
|
||||||
$msg = [string]::Format("[+] Removing registry key {0} ...",
|
$msg = [string]::Format("[+] Removing registry key {0} ...",
|
||||||
$global:MessengerManifestRegistryPath)
|
$global:MessengerManifestRegistryPath)
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,9 @@ mkdir -p generated/static
|
||||||
mkdir -p generated/static/clippy
|
mkdir -p generated/static/clippy
|
||||||
|
|
||||||
if [ "$(isWindowsMinGW)" == "True" ]; then
|
if [ "$(isWindowsMinGW)" == "True" ]; then
|
||||||
$WIN_PYTHON -3 scripts/excmds_macros.py
|
$WIN_PYTHON scripts/excmds_macros.py
|
||||||
else
|
else
|
||||||
python3 scripts/excmds_macros.py
|
scripts/excmds_macros.py
|
||||||
fi
|
fi
|
||||||
scripts/newtab.md.sh
|
scripts/newtab.md.sh
|
||||||
scripts/make_tutorial.sh
|
scripts/make_tutorial.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue