From a593f78fa87d18d72a8a3c51157f00c9cedf4d7b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 4 Oct 2018 08:09:32 +0200 Subject: update-archlinux32-package: exit code 255 is ok for running poweroff via ssh --- update-archlinux32-package | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3