Skip to content

Commit 17e6af2

Browse files
committed
🐛 fix: fixed tasks order
1 parent fb2f92c commit 17e6af2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Setup.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@
2323
#>
2424

2525
#######################################################################################################
26-
### PREREQUESITES ###
26+
### PREREQUISITES ###
2727
#######################################################################################################
28+
# set current working directory location
29+
Set-Location $PSScriptRoot
30+
[System.Environment]::CurrentDirectory = $PSScriptRoot
31+
32+
# Helpers functions
33+
. "$PSScriptRoot\Functions.ps1"
34+
2835
if ((Test-Connection -ComputerName www.google.com -Count 1 -Quiet -ErrorAction Stop) -eq $False) {
2936
Write-Warning "NO INTERNET CONNECTION AVAILABLE!"
3037
Write-Host "Please re-check your internet connection and re-run this script." -ForegroundColor "Red"
@@ -67,10 +74,6 @@ if (-not (Get-Command gum -ErrorAction SilentlyContinue)) {
6774
#######################################################################################################
6875
### HELPER VARIABLES ###
6976
#######################################################################################################
70-
# set current working directory location
71-
Set-Location $PSScriptRoot
72-
[System.Environment]::CurrentDirectory = $PSScriptRoot
73-
7477
# symlinks
7578
$symbolicLinks = @{
7679
$PROFILE.CurrentUserAllHosts = ".\Profile.ps1"
@@ -128,9 +131,6 @@ $nerdFonts = $appList.nerdfont
128131
#######################################################################################################
129132
### MAIN SCRIPT ###
130133
#######################################################################################################
131-
# Helpers functions
132-
. "$PSScriptRoot\Functions.ps1"
133-
134134
# Install all function
135135
function Install {
136136
# Winget Packages

0 commit comments

Comments
 (0)