From 065d29019cb6966c7f5ecf4281c3006a9d37a479 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Thu, 9 Jan 2025 09:06:37 +0100 Subject: [PATCH] t7 --- scripts/translator.py | 9 +++++---- .../azure-security/az-enumeration-tools.md | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/translator.py b/scripts/translator.py index 960dfbba2..928223f02 100644 --- a/scripts/translator.py +++ b/scripts/translator.py @@ -48,6 +48,10 @@ def get_unused_files(branch): def cp_translation_to_repo_dir_and_check_gh_branch(branch, temp_folder, translate_files): + """ + Get the translated files from the temp folder and copy them to the repo directory in the expected branch. + Also remove all the files that are not in the master branch. + """ branch_exists = subprocess.run(['git', 'show-ref', '--verify', '--quiet', 'refs/heads/' + branch]) # If branch doesn't exist, create it if branch_exists.returncode != 0: @@ -399,10 +403,7 @@ if __name__ == "__main__": #pbar.update() except Exception as exc: print(f'Translation generated an exception: {exc}') - - # Delete possibly removed files from the master branch - delete_unused_files(branch) - + #elif args.directory: # Translate everything #translate_directory(language, source_folder, dest_folder, model, num_threads, client) diff --git a/src/pentesting-cloud/azure-security/az-enumeration-tools.md b/src/pentesting-cloud/azure-security/az-enumeration-tools.md index 06171ebad..9a23833ac 100644 --- a/src/pentesting-cloud/azure-security/az-enumeration-tools.md +++ b/src/pentesting-cloud/azure-security/az-enumeration-tools.md @@ -148,4 +148,5 @@ The Azure Active Directory (AD) module, now **deprecated**, is part of Azure Pow Follow this link for the [**installation instructions**](https://www.powershellgallery.com/packages/AzureAD). +{{#include ../../banners/hacktricks-training.md}}