1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00

Prevent double slash in link

This commit is contained in:
ericgaspar 2020-07-26 17:22:58 +02:00
parent ed86b44dd0
commit b7e586a73b
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ paste_data() {
2>/dev/null)
[[ -z "$key" ]] && _die "Unable to parse the server response."
echo "${PASTE_URL}${key}"
echo "${PASTE_URL}/${key}"
}
usage() {

View file

@ -144,7 +144,7 @@ ynh_replace_string --match_string="jquery.min.js" --replace_string="https://ajax
# ADD HASTE AS A BINARY FILE
#=================================================
ynh_replace_string --match_string="__YNH_HASTE_URL__" --replace_string="${domain}${path_url}" --target_file="../conf/haste.sh"
ynh_replace_string --match_string="__YNH_HASTE_URL__" --replace_string="${domain}${path_url%/}" --target_file="../conf/haste.sh"
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/haste.sh"
cp ../conf/haste.sh /usr/bin/$app