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

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

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