From 17aaa3ff87efa7f7953641f28460974f336ce16d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Jun 2023 19:15:47 +0200 Subject: [PATCH] Remove unnecessary `Import-Module` statements --- scripts/Windows/Scripts/PersonalFiles.ps1 | 2 +- scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 | 2 +- scripts/Windows/Software/TrackMania United Forever/Manage.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Windows/Scripts/PersonalFiles.ps1 b/scripts/Windows/Scripts/PersonalFiles.ps1 index 8114ebde..96f9359c 100644 --- a/scripts/Windows/Scripts/PersonalFiles.ps1 +++ b/scripts/Windows/Scripts/PersonalFiles.ps1 @@ -1,4 +1,4 @@ -Import-Module "$PSScriptRoot/../../scripts/Common/Scripts/Context.ps1" -Force; +. "$PSScriptRoot/../../scripts/Common/Scripts/Context.ps1"; function Get-BackupCandidates() { [System.Collections.Generic.List[System.Tuple[string, string, string[]]]]$candidates = @(); diff --git a/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 index 6f70bc35..1febaebd 100644 --- a/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 +++ b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 @@ -1,4 +1,4 @@ -Import-Module "$PSScriptRoot/../../Scripts/Context.ps1" -Force; +. "$PSScriptRoot/../../Scripts/Context.ps1"; $path = "$HOME/Documents/TmForever"; $softwareName = "TmNationsForever"; diff --git a/scripts/Windows/Software/TrackMania United Forever/Manage.ps1 b/scripts/Windows/Software/TrackMania United Forever/Manage.ps1 index 4baf5c05..078d280c 100644 --- a/scripts/Windows/Software/TrackMania United Forever/Manage.ps1 +++ b/scripts/Windows/Software/TrackMania United Forever/Manage.ps1 @@ -1,4 +1,4 @@ -Import-Module "$PSScriptRoot/../../Scripts/Context.ps1" -Force; +. "$PSScriptRoot/../../Scripts/Context.ps1"; $path = "$HOME/Documents/TrackMania"; $softwareName = "TmUnitedForever";