Skip to content

Commit

Permalink
dir fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Sep 17, 2024
1 parent 01078ea commit 2ab4778
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
"type": "cmd"
},
{
"path": "powershell -File './winutil.ps1'",
"path": "powershell -File './src/winutil.ps1'",
"name": "Chris Titus Tech's Windows Utility",
"description": "Install Programs, Tweaks, Fixes, and Updates // Layer 02 for configuring Windows quickly. Use the config file provided in /config.",
"type": "cmd"
Expand Down
4 changes: 0 additions & 4 deletions src/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
init(autoreset=True)

def check_windows_version():
"""Check if the script is running on Windows 11."""
system_version = platform.version()

if platform.system() == "Windows":
Expand Down Expand Up @@ -126,8 +125,6 @@ def download_file(url, name, description, extract, folder_main, folder_name, hea
print(Fore.RED + Style.BRIGHT + f"An error occurred: {err}")

def execute_command(command):
"""Execute PowerShell commands"""

display_rotating_indicator("Running powershell command please wait...")
try:
result = subprocess.run(["powershell", "-Command", command], capture_output=True, text=True)
Expand All @@ -139,7 +136,6 @@ def execute_command(command):
print(Fore.RED + Style.BRIGHT + f"An error occurred while executing the command: {err}")

def load_sources():
"""Load the sources from sources.json."""
try:
root_dir = Path(__file__).parent.parent
sources_path = root_dir / 'sources.json'
Expand Down
File renamed without changes.

0 comments on commit 2ab4778

Please sign in to comment.