diff --git a/sources.json b/sources.json index 4701755..604df47 100644 --- a/sources.json +++ b/sources.json @@ -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" diff --git a/src/sources.py b/src/sources.py index f470795..adf0dbc 100644 --- a/src/sources.py +++ b/src/sources.py @@ -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": @@ -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) @@ -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' diff --git a/winutil.ps1 b/src/winutil.ps1 similarity index 100% rename from winutil.ps1 rename to src/winutil.ps1