Skip to content
Snippets Groups Projects
Commit 064e7107 authored by Bob Mottram's avatar Bob Mottram
Browse files

Run with bash command

parent c4e4cb6d
No related branches found
No related tags found
No related merge requests found
......@@ -241,19 +241,19 @@ tty_device=$(tty)
cd "${build_directory}" || exit 1
if [ ! "$build_info" ]; then
if ! /usr/local/bin/${PROJECT_NAME}-image -t "${target}" ${extra} --ci yes --build-log "${build_log_filename}" > "$tty_device"; then
if ! sudo -u root /bin/bash -c "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" ${extra} --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
check_for_reboot "${build_log_filename}"
exit 10
fi
else
if [[ "$build_info" == 'onion' ]]; then
if ! /usr/local/bin/${PROJECT_NAME}-image -t "${target}" ${extra} --onion yes --ci yes --build-log "${build_log_filename}" > "$tty_device"; then
if ! sudo -u root /bin/bash -c "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" ${extra} --onion yes --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
check_for_reboot "${build_log_filename}"
exit 20
fi
fi
if [[ "$build_info" == 'mesh'* ]]; then
if ! /usr/local/bin/${PROJECT_NAME}-image -t "${target}" -v "${build_info}" ${extra} --ci yes --build-log "${build_log_filename}" > "$tty_device"; then
if ! sudo -u root /bin/bash -c "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" -v \"${build_info}\" ${extra} --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
check_for_reboot "${build_log_filename}"
exit 30
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment