Force path to start with a leading slash.
This commit is contained in:
parent
1a3caf49c9
commit
991873d35b
|
@ -12,6 +12,11 @@ domain=$YNH_APP_ARG_DOMAIN
|
||||||
path=$YNH_APP_ARG_PATH
|
path=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
|
||||||
|
# Force path to start with a /
|
||||||
|
if [ "${path:0:1}" != "/" ]; then
|
||||||
|
path="/$path"
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove trailing slash to path
|
# Remove trailing slash to path
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
#force location to be / or /foo
|
#force location to be / or /foo
|
||||||
|
|
Loading…
Reference in New Issue