mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
bc99ec0f1d
* fix: selfhosted fixes * fix: updated env example
16 lines
368 B
Bash
16 lines
368 B
Bash
#!/bin/sh
|
|
FROM=$1
|
|
TO=$2
|
|
DIRECTORY=$3
|
|
|
|
if [ "${FROM}" = "${TO}" ]; then
|
|
echo "Nothing to replace, the value is already set to ${TO}."
|
|
|
|
exit 0
|
|
fi
|
|
|
|
# Only perform action if $FROM and $TO are different.
|
|
echo "Replacing all statically built instances of $FROM with this string $TO ."
|
|
|
|
grep -R -la "${FROM}" $DIRECTORY/.next | xargs -I{} sed -i "s|$FROM|$TO|g" "{}"
|