Skip to content
Snippets Groups Projects
Commit 730c3124 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Fix _gui check

parent a6c4f1fa
No related branches found
No related tags found
1 merge request!20Rf/gui wrappers
......@@ -76,8 +76,9 @@ for script in $targets; do
# <Command>_gui. Here, we remove the _gui suffix
# if no source file exists (in which we are
# likely running on Linux)
if [ "$sourceScript" = *"_gui" ] && [ ! -f "$sourceScript" ]; then
sourceScript=${sourceScript/_gui/}
if [[ "$script" == *"_gui" ]] && [ ! -f "$sourceScript" ]; then
script=${script/_gui/}
sourceScript="${PREFIX}/bin/$script"
fi
targetScript="${FSLDIR}/share/fsl/bin/$script"
......
......@@ -33,7 +33,7 @@ for script in $targets; do
targetScript="${FSLDIR}/share/fsl/bin/$script"
# See comment about FSL GUIs in post-link.sh
if [ "$targetScript" = *"_gui" ] && [ ! -f "$targetScript" ]; then
if [[ "$targetScript" == *"_gui" ]] && [ ! -f "$targetScript" ]; then
targetScript=${targetScript/_gui/}
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