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

subshell

parent af4401ae
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ if [[ "$arg1" == 'add' ]]; then
fi
success=
if /bin/bash -c "/usr/local/bin/freedombone-addremove-base \"$arg1\" \"$arg2\""; then
if (/usr/local/bin/freedombone-addremove-base "$arg1" "$arg2"); then
success=1
fi
......@@ -54,6 +54,7 @@ if [ ! $adding_app ]; then
fi
else
if [ ! $success ]; then
echo $"Failed to add app: $arg2"
# show the installation failed screen
sed -i "/install_$arg2/d" "$pending_installs"
#web_admin_create_add_apps
......@@ -61,6 +62,7 @@ else
cp "$webadmin_install_dir/app_installing_failed.html" "$webadmin_install_dir/installing_progress.html"
exit 2
else
echo $"Added app: $arg2"
# replace the installing screen with the original index page
if [ -f "$webadmin_install_dir/index_app_installing.html" ]; then
cp "$webadmin_install_dir/index_app_installing.html" "$webadmin_install_dir/index.html"
......
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