Changed powershell script

This commit is contained in:
2024-06-09 01:32:06 +02:00
parent cb105b6b01
commit 54b503595f
+4 -24
View File
@@ -1,4 +1,4 @@
# PowerShell script to install Obsidian and configure plugins # PowerShell script to install Obsidian and configure plugins on Windows
function Install-Obsidian-Windows { function Install-Obsidian-Windows {
Write-Output "Installing Obsidian for Windows..." Write-Output "Installing Obsidian for Windows..."
@@ -66,26 +66,6 @@ function Install-Plugins {
Write-Output "Plugins installed successfully." Write-Output "Plugins installed successfully."
} }
Write-Output "Please select your operating system:" # Directly run Windows installation and plugin configuration
Write-Output "L) Linux" Install-Obsidian-Windows
Write-Output "M) macOS" Install-Plugins
Write-Output "W) Windows"
$osChoice = Read-Host "Enter your choice"
switch ($osChoice.ToUpper()) {
"L" {
Write-Output "Please run the script install_obsidian.sh on Linux."
}
"M" {
Write-Output "Please run the script install_obsidian.sh on macOS."
}
"W" {
Install-Obsidian-Windows
Install-Plugins
}
default {
Write-Output "Invalid choice. Exiting."
exit 1
}
}