diff options
author | John Estabrook <jestabro@vyos.io> | 2024-04-29 10:28:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 10:28:08 -0500 |
commit | 8032e6f4e650667d666636aad0f34696e1a53e32 (patch) | |
tree | 4d76212c9a223702bf3b8127cb47cde5c8c4b892 /scripts/image-build/raw_image.py | |
parent | 471ac04b050b2402d5bfa0e2e8eafe5380a4f0a7 (diff) | |
parent | 7dfd9232da787a7befbc4338d4eb21fee4325174 (diff) | |
download | vyos-build-8032e6f4e650667d666636aad0f34696e1a53e32.tar.gz vyos-build-8032e6f4e650667d666636aad0f34696e1a53e32.zip |
Merge pull request #576 from dmbaturin/T3664-fixes
build: T3664: typo fixes and small refactoring
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) |