Skip to content
Snippets Groups Projects
Commit 18f9bcc9 authored by Paolino Paperino's avatar Paolino Paperino
Browse files

2017-09-12: FG; Make sure fixIndex.sh parameter is NOT terminated with / character.

parent ee1c8ada
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,9 @@ dirName=`dirname $0`
theString=$1
theStringLastChar=${theString:${#theString}-1:1}
# Make sure theString ends with '/'
if [ "$theStringLastChar" != "/" ]; then
theString="${theString}/"
# Make sure theString does not end with '/'
if [ "$theStringLastChar" == "/" ]; then
theString="${theString:0:${#theString}-1}"
fi
echo "Substitute DASHBOARD_BASEURL with $theString in file ${dirName}/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