Merge pull request 'ejecutarscript-bash' (#11) from ejecutarscript-bash into main
Reviewed-on: #11pull/12/head
commit
ba42dd9f42
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.2.1] - 2025-03-26
|
||||
|
||||
### Fixed
|
||||
|
||||
- Run scripts with bash to avoid errno 8 "Exec format error"
|
||||
|
||||
## [0.2.0] - 2025-03-25
|
||||
|
||||
### Added
|
||||
|
|
|
@ -34,7 +34,7 @@ with open (ogGlobals.OGLOGFILE, 'a') as logfd:
|
|||
|
||||
os.chmod (script_path, 0o755)
|
||||
# Si mandamos la salida a OGLOGCOMMAND reescribimos lo que manda el comando.
|
||||
RETVAL = subprocess.run (script_path, capture_output=True, text=True).returncode
|
||||
RETVAL = subprocess.run (['bash', script_path], capture_output=True, text=True).returncode
|
||||
|
||||
|
||||
TIME = time.time() - TIME1
|
||||
|
|
Loading…
Reference in New Issue