1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-09 21:17:52 +03:00

Typos corrected

This commit is contained in:
Valery Sinelnikov 2023-11-20 11:13:32 +04:00
parent 6fc059aaac
commit dd43ddaad6

View File

@ -148,10 +148,10 @@ def install_script(storage_script_entry, script_dir, access_permissions):
shutil.copyfile(storage_script_entry.path, script_file)
os.chmod(script_file, int(access_permissions, base = 8))
if storage_script_entry.arg:
if storage_script_entry.args:
dir_path = script_dir + '/' + script_name + '.arg'
dir_arg = Path(dir_path)
dir_arg.mkdir(parents=True, exist_ok=True)
file_arg = open(dir_path + '/arg', 'w')
file_arg.write(storage_script_entry.arg)
file_arg.write(storage_script_entry.args)
file_arg.close()