Skip to content

Commit 8590dbc

Browse files
committed
Update both scripts
1 parent 5af77ba commit 8590dbc

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

Scripts/download.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/powershell
22
<#
3-
.SYNTAX ./download.ps1 [<URL>]
4-
.DESCRIPTION downloads the file/directory from the given URL
5-
.LINK https://github.com/fleschutz/PowerShell
6-
.NOTES Author: Markus Fleschutz / License: CC0
3+
.SYNTAX ./download.ps1 [<URL>]
4+
.DESCRIPTION downloads the file/directory from the given URL
5+
.LINK https://github.com/fleschutz/PowerShell
6+
.NOTES Author: Markus Fleschutz / License: CC0
77
#>
88

99
param($URL = "")

Scripts/enable-god-mode.ps1

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
#!/bin/powershell
22
<#
3-
.SYNTAX ./enable-god-mode.ps1
4-
.DESCRIPTION enables the god mode (adds a new icon to the desktop)
5-
.LINK https://github.com/fleschutz/PowerShell
6-
.NOTES Author: Markus Fleschutz / License: CC0
3+
.SYNTAX ./enable-god-mode.ps1
4+
.DESCRIPTION enables the god mode (adds a new icon to the desktop)
5+
.LINK https://github.com/fleschutz/PowerShell
6+
.NOTES Author: Markus Fleschutz / License: CC0
77
#>
88

9-
#Requires -RunAsAdministrator
10-
119
try {
12-
$godmodeSplat = @{
13-
Path = "$env:USERPROFILEDesktop"
10+
$GodModeSplat = @{
11+
Path = "$HOME\Desktop"
1412
Name = "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"
1513
ItemType = 'Directory'
1614
}
17-
new-item @godmodeSplat
15+
new-item @GodModeSplat
1816

1917
write-host -foregroundColor green "OK - see the new desktop icon"
2018
exit 0

0 commit comments

Comments
 (0)