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:
parent
ed86b44dd0
commit
b7e586a73b
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ paste_data() {
|
||||||
2>/dev/null)
|
2>/dev/null)
|
||||||
[[ -z "$key" ]] && _die "Unable to parse the server response."
|
[[ -z "$key" ]] && _die "Unable to parse the server response."
|
||||||
|
|
||||||
echo "${PASTE_URL}${key}"
|
echo "${PASTE_URL}/${key}"
|
||||||
}
|
}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
|
|
@ -144,7 +144,7 @@ ynh_replace_string --match_string="jquery.min.js" --replace_string="https://ajax
|
||||||
# ADD HASTE AS A BINARY FILE
|
# 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"
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/haste.sh"
|
||||||
|
|
||||||
cp ../conf/haste.sh /usr/bin/$app
|
cp ../conf/haste.sh /usr/bin/$app
|
||||||
|
|
Loading…
Reference in a new issue