Added function for execute command and return the real value

This commit is contained in:
Antonio de la Rosa 2026-01-04 23:41:36 +01:00
parent deeb2b0531
commit c6fb184328
3 changed files with 6 additions and 2 deletions

View file

@ -16,6 +16,10 @@ def shell_command(command):
else:
return True
def shell_command_ret(command):
return call(command, shell=True)
def check_distro(arr_command):
distro_id=distro.id()

View file

@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
name = "cuchulucputils"
authors = [{name = "Antonio de la Rosa", email = "antonio.delarosa@salirdelhoyo.com"}]
readme = "README.md"
version = "0.76.5"
version = "0.76.6"
description = "Utils for make *nix scripts."
# dynamic = ["version", "description"]

View file

@ -9,7 +9,7 @@ if sys.version_info < (3, 9):
raise NotImplementedError("Sorry, you need at least Python 3.9 for use cuchulucputils.")
setup(name='cuchulucputils',
version='0.76.5',
version='0.76.6',
description='Utils for make *nix scripts.',
long_description='Utils for make *nix scripts.',
author='Antonio de la Rosa Caballero',