Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Recreate-Base-Shortcuts.ps1 - Few errors #1

Closed
zzoher opened this issue Jan 14, 2023 · 1 comment
Closed

[Bug] Recreate-Base-Shortcuts.ps1 - Few errors #1

zzoher opened this issue Jan 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@zzoher
Copy link

zzoher commented Jan 14, 2023

At C:\Tasks\Recreate-Base-Shortcuts.ps1:28 char:31
+     [Parameter(Mandatory=$true]
+                               ~
Missing closing ')' in expression.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:32 char:31
+     [Parameter(Mandatory=$true]
+                               ~
Missing closing ')' in expression.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:52 char:32
+   if ($sName -And $sTarget -And Test-Path $sTarget -PathType leaf) {
+                                ~
You must provide a value expression following the '-And' operator.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:52 char:33
+   if ($sName -And $sTarget -And Test-Path $sTarget -PathType leaf) {
+                                 ~~~~~~~~~
Unexpected token 'Test-Path' in expression or statement.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:52 char:33
+   if ($sName -And $sTarget -And Test-Path $sTarget -PathType leaf) {
+                                 ~~~~~~~~~
Missing closing ')' after expression in 'if' statement.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:23 char:28
+ function Recreate-Shortcut {
+                            ~
Missing closing '}' in statement block or type definition.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:52 char:66
+   if ($sName -And $sTarget -And Test-Path $sTarget -PathType leaf) {
+                                                                  ~
Unexpected token ')' in expression or statement.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:85 char:5
+   } else if (-Not ($sName -Or $sTarget)) {
+     ~~~~
Unexpected token 'else' in expression or statement.
At C:\Tasks\Recreate-Base-Shortcuts.ps1:98 char:1
+ }
+ ~
Unexpected token '}' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : MissingEndParenthesisInExpression
@Andrew-J-Larson
Copy link
Owner

Andrew-J-Larson commented Jan 15, 2023

All that should be fixed now, since the following changes:

  • Merged pull request: aec56e1
  • Fixed UserProgramShortcutsPath: b1f0115
  • Fixed some variables not renamed yet: 4cf1c53
  • Fixed sRunAsAdmin flag + prettier outlput now: 902f385

@Andrew-J-Larson Andrew-J-Larson self-assigned this Jan 15, 2023
@Andrew-J-Larson Andrew-J-Larson added the bug Something isn't working label Jan 15, 2023
@Andrew-J-Larson Andrew-J-Larson changed the title Few errors [Bug] Recreate-Base-Shortcuts.ps1 - Few errors Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants