Skip to content

Commit 0570b64

Browse files
committed
t7
1 parent f12e6c7 commit 0570b64

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

scripts/translator.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def get_unused_files(branch):
4848

4949

5050
def cp_translation_to_repo_dir_and_check_gh_branch(branch, temp_folder, translate_files):
51+
"""
52+
Get the translated files from the temp folder and copy them to the repo directory in the expected branch.
53+
Also remove all the files that are not in the master branch.
54+
"""
5155
branch_exists = subprocess.run(['git', 'show-ref', '--verify', '--quiet', 'refs/heads/' + branch])
5256
# If branch doesn't exist, create it
5357
if branch_exists.returncode != 0:
@@ -399,10 +403,7 @@ def translate_directory(language, source_path, dest_path, model, num_threads, cl
399403
#pbar.update()
400404
except Exception as exc:
401405
print(f'Translation generated an exception: {exc}')
402-
403-
# Delete possibly removed files from the master branch
404-
delete_unused_files(branch)
405-
406+
406407
#elif args.directory:
407408
# Translate everything
408409
#translate_directory(language, source_folder, dest_folder, model, num_threads, client)

src/pentesting-cloud/azure-security/az-enumeration-tools.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,5 @@ The Azure Active Directory (AD) module, now **deprecated**, is part of Azure Pow
148148
149149
Follow this link for the [**installation instructions**](https://www.powershellgallery.com/packages/AzureAD).
150150

151+
{{#include ../../banners/hacktricks-training.md}}
151152

0 commit comments

Comments
 (0)