Skip to content

Commit

Permalink
fix: Rename file-runner lib
Browse files Browse the repository at this point in the history
- open-file is a better name i've thought
  • Loading branch information
LeDragoX committed May 1, 2022
1 parent d71ee69 commit 6a8fb8f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Win10ScriptCLI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Main() {
Request-AdminPrivilege # Check admin rights
Get-ChildItem -Recurse $PSScriptRoot\*.ps*1 | Unblock-File

Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"file-runner.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"open-file.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"set-console-style.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"set-script-policy.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"show-dialog-window.psm1"
Expand Down
4 changes: 2 additions & 2 deletions Win10ScriptGUI.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Request-AdminPrivilege() {
function Request-AdminPrivilege() {
# Used from https://stackoverflow.com/a/31602095 because it preserves the working directory!
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
}
Expand Down Expand Up @@ -1237,7 +1237,7 @@ function Main() {
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"download-web-file.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"get-hardware-info.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"gui-helper.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"file-runner.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"open-file.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"install-software.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"set-console-style.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"set-script-policy.psm1"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/scripts/optimize-performance.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"file-runner.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"open-file.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"title-templates.psm1"

# Adapted from: https://youtu.be/hQSkPmZRCjc
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/personal-tweaks.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"file-runner.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"open-file.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"title-templates.psm1"

# Adapted from: https://github.com/ChrisTitusTech/win10script
Expand Down

0 comments on commit 6a8fb8f

Please sign in to comment.