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

Wait for process

parent 8685d750
No related branches found
No related tags found
No related merge requests found
......@@ -43,12 +43,21 @@ if [[ "$arg1" == 'add' ]]; then
fi
fi
/usr/local/bin/freedombone-addremove-base "$arg1" "$arg2" &
addremove_pid=$!
wait $addremove_pid
success=
if [ "$?" = "0" ]; then
success=1
fi
if [ ! $adding_app ]; then
if ! /usr/local/bin/freedombone-addremove-base "$arg1" "$arg2"; then
if [ ! $success ]; then
exit 1
fi
else
if ! /usr/local/bin/freedombone-addremove-base "$arg1" "$arg2"; then
if [ ! $success ]; then
# show the installation failed screen
sed -i "/install_$arg2/d" "$pending_installs"
#web_admin_create_add_apps
......
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