Commit fea74b4b authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Fix open_command nohup call

There a syntax error if $cmd_var contains more than one word,
so we drop the current way to prepend nohup and use a simpler
if-else form.
parent ef031dfe
...@@ -29,9 +29,11 @@ function open_command() { ...@@ -29,9 +29,11 @@ function open_command() {
esac esac
# don't use nohup on OSX # don't use nohup on OSX
[[ "$OSTYPE" != darwin* ]] && open_cmd="nohup $open_cmd" if [[ "$OSTYPE" == darwin* ]]; then
$open_cmd "$@" &>/dev/null $open_cmd "$@" &>/dev/null
else
nohup $open_cmd "$@" &>/dev/null
fi
} }
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment