mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-07 22:53:55 -05:00
17 lines
312 B
Bash
Executable File
17 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ORIGINAL=$1
|
|
REPLACEMENT=$2
|
|
|
|
if [ "${ORIGINAL}" = "${REPLACEMENT}" ]; then
|
|
echo "Environment variable replacement is the same, skipping.."
|
|
exit 0
|
|
fi
|
|
|
|
echo "Replacing pre-baked value.."
|
|
|
|
find assets -type f -name "*.js" |
|
|
while read file; do
|
|
sed -i "s|$ORIGINAL|$REPLACEMENT|g" "$file"
|
|
done
|