Commit 7c5fb707 authored by Rashad Kanavath's avatar Rashad Kanavath

ENH: fixes issues caught from shellcheck

parent beddc2af
#!/bin/bash
#!/bin/sh
#
# Autogenerated by OTB installation process
# DO NOT MODIFY
#
CURRENT_SCRIPT_DIR=`dirname $0`
CURRENT_SCRIPT_DIR=$(dirname "$0")
if [ -e $CURRENT_SCRIPT_DIR/otbApplicationLauncherCommandLine ]
if [ -e "$CURRENT_SCRIPT_DIR/otbApplicationLauncherCommandLine" ]
then
# Prefer using the launcher inside the script dir
OTB_CLI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbApplicationLauncherCommandLine
......@@ -17,7 +17,7 @@ else
fi
# works for install tree
if [ -d $CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@ ]
if [ -d "$CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@" ]
then
OTB_APPLICATION_PATH=$CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@:$OTB_APPLICATION_PATH
fi
......@@ -29,8 +29,8 @@ export OTB_APPLICATION_PATH
export LC_NUMERIC=C
# Source GDAL_DATA, EPSG_CSV
if [ -f $CURRENT_SCRIPT_DIR/env_exports ]; then
. $CURRENT_SCRIPT_DIR/env_exports
if [ -f "$CURRENT_SCRIPT_DIR/env_exports" ]; then
. "$CURRENT_SCRIPT_DIR/env_exports"
fi
# start the application
......
#!/bin/bash
#!/bin/sh
#
# Autogenerated by OTB installation process
# DO NOT MODIFY
#
CURRENT_SCRIPT_DIR=`dirname $0`
CURRENT_SCRIPT_DIR=$(dirname "$0")
if [ -e $CURRENT_SCRIPT_DIR/otbcli ]
if [ -e "$CURRENT_SCRIPT_DIR/otbcli" ]
then
# Prefer using the launcher inside the script dir
OTB_CLI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbcli
......
#!/bin/bash
#!/bin/sh
#
# Autogenerated by OTB installation process
# DO NOT MODIFY
#
CURRENT_SCRIPT_DIR=`dirname $0`
CURRENT_SCRIPT_DIR=$(dirname "$0")
if [ -e $CURRENT_SCRIPT_DIR/otbApplicationLauncherQt ]
if [ -e "$CURRENT_SCRIPT_DIR/otbApplicationLauncherQt" ]
then
# Prefer using the launcher inside the script dir
OTB_GUI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbApplicationLauncherQt
......@@ -17,7 +17,7 @@ else
fi
# use the default install tree path for applications
if [ -d $CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@ ]
if [ -d "$CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@" ]
then
OTB_APPLICATION_PATH=$CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@:$OTB_APPLICATION_PATH
fi
......@@ -29,8 +29,8 @@ export OTB_APPLICATION_PATH
export LC_NUMERIC=C
# Source GDAL_DATA, EPSG_CSV
if [ -f $CURRENT_SCRIPT_DIR/env_exports ]; then
. $CURRENT_SCRIPT_DIR/env_exports
if [ -f "$CURRENT_SCRIPT_DIR/env_exports" ]; then
. "$CURRENT_SCRIPT_DIR/env_exports"
fi
# start the application
......
#!/bin/bash
#!/bin/sh
#
# Autogenerated by OTB installation process
# DO NOT MODIFY
#
CURRENT_SCRIPT_DIR=`dirname $0`
CURRENT_SCRIPT_DIR=$(dirname "$0")
if [ -e $CURRENT_SCRIPT_DIR/otbgui ]
if [ -e "$CURRENT_SCRIPT_DIR/otbgui" ]
then
# Prefer using the launcher inside the script dir
OTB_GUI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbgui
......
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