diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-29 14:33:25 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2024-04-29 14:33:25 +0000 |
commit | 7dfd9232da787a7befbc4338d4eb21fee4325174 (patch) | |
tree | 682e59c070d044a9cd2b6c927aba03f1aa509aef /scripts/image-build/raw_image.py | |
parent | f6b0809f47691a8c21718c4256d99b40c73c1564 (diff) | |
download | vyos-build-7dfd9232da787a7befbc4338d4eb21fee4325174.tar.gz vyos-build-7dfd9232da787a7befbc4338d4eb21fee4325174.zip |
build: T3664: fail the build on external command errors
Diffstat (limited to 'scripts/image-build/raw_image.py')
-rw-r--r-- | scripts/image-build/raw_image.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/image-build/raw_image.py b/scripts/image-build/raw_image.py index 67039a24..ae061990 100644 --- a/scripts/image-build/raw_image.py +++ b/scripts/image-build/raw_image.py @@ -25,11 +25,7 @@ import vyos.utils.process SQUASHFS_FILE = 'live/filesystem.squashfs' VERSION_FILE = 'version.json' - -def cmd(command): - res = vyos.utils.process.call(command, shell=True) - if res > 0: - raise OSError(f"Command '{command}' failed") +from utils import cmd def mkdir(path): os.makedirs(path, exist_ok=True) |