From d7b1a913bc5da08daeaa4ee0bdb494ffcf3b5ad2 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Thu, 10 Jun 2021 15:21:09 +0200 Subject: [PATCH] properly quote var expansion, since it can contain spaces now --- tools/interactive/interactivetool_jupyter_notebook.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/interactive/interactivetool_jupyter_notebook.xml b/tools/interactive/interactivetool_jupyter_notebook.xml index 0ca5732b858..3ad598ceed0 100644 --- a/tools/interactive/interactivetool_jupyter_notebook.xml +++ b/tools/interactive/interactivetool_jupyter_notebook.xml @@ -39,15 +39,15 @@ cp ./ipython_galaxy_notebook.ipynb '$jupyter_notebook' #else: #set $noteboook_name = re.sub('[^\w\-\.\s]', '_', str($mode.ipynb.element_identifier)) - cp '$mode.ipynb' ./${noteboook_name}.ipynb && - jupyter trust ./${noteboook_name}.ipynb && + cp '$mode.ipynb' './${noteboook_name}.ipynb' && + jupyter trust './${noteboook_name}.ipynb' && #if $mode.run_it: jupyter nbconvert --to notebook --execute --output ./ipython_galaxy_notebook.ipynb --allow-errors ./*.ipynb && #set $noteboook_name = 'ipython_galaxy_notebook' #else: jupyter lab --allow-root --no-browser --NotebookApp.shutdown_button=True && #end if - cp ./${noteboook_name}.ipynb '$jupyter_notebook' + cp './${noteboook_name}.ipynb' '$jupyter_notebook' #end if ]]>