Skip to content

Commit 8e351c7

Browse files
author
Rub21
committed
Fix slash for env var - projects repo
1 parent 30bacde commit 8e351c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

images/taginfo/start.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -euo pipefail
2+
set -x
33

44
WORKDIR=/apps
55
DATA_DIR=$WORKDIR/data
@@ -25,7 +25,8 @@ grep -v '^ *//' $WORKDIR/taginfo/taginfo-config-example.json |
2525
[[ ! -z $INSTANCE_CONTACT+z} ]] && jq --arg a "${INSTANCE_CONTACT}" '.instance.contact = $a' $WORKDIR/taginfo-config.json >tmp.json && mv tmp.json $WORKDIR/taginfo-config.json
2626

2727
# Function to replace the repo to get the projects information
28-
sed -i -e 's/https://github.com/taginfo/taginfo-projects.git/'$TAGINFO_PROJECT_REPO'/g' $WORKDIR/taginfo/sources/projects/update.sh
28+
TAGINFO_PROJECT_REPO=${TAGINFO_PROJECT_REPO//\//\\/}
29+
sed -i -e 's/https:\/\/github.com\/taginfo\/taginfo-projects.git/'$TAGINFO_PROJECT_REPO'/g' $WORKDIR/taginfo/sources/projects/update.sh
2930

3031
# The follow line is requiered to avoid an issue -> require cannot load such file -- sqlite3
3132
sed -i -e 's/run_ruby "$SRCDIR\/update_characters.rb"/ruby "$SRCDIR\/update_characters.rb"/g' $WORKDIR/taginfo/sources/db/update.sh

0 commit comments

Comments
 (0)