diff options
author | Erich Eckner <git@eckner.net> | 2018-10-04 08:09:32 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-04 08:09:32 +0200 |
commit | a593f78fa87d18d72a8a3c51157f00c9cedf4d7b (patch) | |
tree | 012aa3cf5466d4412bea19e79d807a6647a27922 /update-archlinux32-package | |
parent | d437d3f03e7b2788f7efbe6c8cac16fd2f1cb315 (diff) | |
download | devops-a593f78fa87d18d72a8a3c51157f00c9cedf4d7b.tar.xz |
update-archlinux32-package: exit code 255 is ok for running poweroff via ssh
Diffstat (limited to 'update-archlinux32-package')
-rwxr-xr-x | update-archlinux32-package | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package index 33c9549..ae17d69 100755 --- a/update-archlinux32-package +++ b/update-archlinux32-package @@ -113,4 +113,9 @@ git -C "${git_repo_path}" commit -m "${repo}/${pkgname}: ${old_pkgver} -> ${new_ if ! ${vm_is_running}; then ssh arch32-test 'sudo poweroff' + err=$? + if [ ${err} -eq 255 ]; then + err=0 + fi + exit ${err} fi |