From 54b503595f5ca7f97f98b8995b2d900b89deb286 Mon Sep 17 00:00:00 2001 From: Quinta <0pietroquintavalle0@gmail.com> Date: Sun, 9 Jun 2024 01:32:06 +0200 Subject: [PATCH] Changed powershell script --- install_obsidian.ps1 | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/install_obsidian.ps1 b/install_obsidian.ps1 index 877710b..84480d2 100644 --- a/install_obsidian.ps1 +++ b/install_obsidian.ps1 @@ -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 { Write-Output "Installing Obsidian for Windows..." @@ -66,26 +66,6 @@ function Install-Plugins { Write-Output "Plugins installed successfully." } -Write-Output "Please select your operating system:" -Write-Output "L) Linux" -Write-Output "M) macOS" -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 - } -} +# Directly run Windows installation and plugin configuration +Install-Obsidian-Windows +Install-Plugins