Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dqii committed Apr 16, 2024
1 parent 00adf82 commit 7e9f5ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
env:
VERSION: "0.1.13"
VERSION: "0.1.14"
IMAGE_NAME: "lanterndata/lantern-suite"
LANTERN_VERSION: "0.2.4"
LANTERN_EXTRAS_VERSION: "0.1.4"
Expand Down
5 changes: 2 additions & 3 deletions scripts/configure-postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ postgresql_update_shared_preload_libraries() {

if grep -qE "^shared_preload_libraries" "$conf_file"; then
libraries=$(sed -E "s/^shared_preload_libraries\s*=\s*'(.*)'/\1/" "$conf_file")
if [[ " $libraries " != *" $library "* ]]; then
libraries="$libraries, $library"
replace_in_file "$conf_file" "^shared_preload_libraries\s*=.*" "shared_preload_libraries = '\$libraries'" false
if [[ " $libraries " != *"$library"* ]]; then
replace_in_file "$conf_file" "^shared_preload_libraries\s*=.*" "$libraries,$library" false
fi
else
echo "shared_preload_libraries = '$library'" >> "$conf_file"
Expand Down

0 comments on commit 7e9f5ed

Please sign in to comment.