From 83d0fef02fbba226f4e78214cba2f5254688334d Mon Sep 17 00:00:00 2001 From: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Date: Tue, 21 Jun 2022 18:31:20 +0530 Subject: [PATCH] fix(shortcuts): Fix missing parentheses (#5006) * fix(shortcuts): Fix missing parentheses * Update CHANGELOG.md --- CHANGELOG.md | 2 +- lib/shortcuts.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f90d6ebc2..57d04b51dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ### Bug Fixes - **chore:** Update help documentation ([#5002](https://github.com/ScoopInstaller/Scoop/issues/5002)) -- **shortcuts:** Fix network drive shortcut creation ([#4410](https://github.com/ScoopInstaller/Scoop/issues/4410)) +- **shortcuts:** Fix network drive shortcut creation ([#4410](https://github.com/ScoopInstaller/Scoop/issues/4410)), ([#5006](https://github.com/ScoopInstaller/Scoop/issues/5006)) ### Code Refactoring diff --git a/lib/shortcuts.ps1 b/lib/shortcuts.ps1 index 16b658aa51..e8ddec26bb 100644 --- a/lib/shortcuts.ps1 +++ b/lib/shortcuts.ps1 @@ -25,7 +25,7 @@ function shortcut_folder($global) { } else { $startmenu = 'StartMenu' } - return Convert-Path $(ensure [System.IO.Path]::Combine([Environment]::GetFolderPath($startmenu), 'Programs', 'Scoop Apps')) + return Convert-Path (ensure ([System.IO.Path]::Combine([Environment]::GetFolderPath($startmenu), 'Programs', 'Scoop Apps'))) } function startmenu_shortcut([System.IO.FileInfo] $target, $shortcutName, $arguments, [System.IO.FileInfo]$icon, $global) {