Skip to content

Commit

Permalink
Export -f doesn't work on all systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina authored and Luke-Sikina committed Jul 25, 2024
1 parent 42698f4 commit 3656d3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion initial-configuration/install-dependencies-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ sed_inplace() {
sed -i "$@"
fi
}
export -f sed_inplace

CWD=$(pwd)
# this makes tr work on OSX
Expand Down
7 changes: 7 additions & 0 deletions initial-configuration/mysql-docker/setup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
sed_inplace() {
if [ "$(uname)" = "Darwin" ]; then
sed -i '' "$@"
else
sed -i "$@"
fi
}
if [ -z "$(docker ps --format '{{.Names}}' | grep picsure-db)" ]; then
echo "Cleaning up old configs"
rm -r "${DOCKER_CONFIG_DIR:?}"/*
Expand Down
1 change: 1 addition & 0 deletions initial-configuration/pass.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30Ik2r_^Y9CppDHHvmtbGzNf

0 comments on commit 3656d3f

Please sign in to comment.