Created
November 17, 2021 10:01
-
-
Save devpilot/3cb9c71a03e521362843fcdb312b3ece to your computer and use it in GitHub Desktop.
find and replace from build files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
buildFiles="build/static/js/*.chunk.js" | |
confFile="$(pwd)/client.conf" | |
while read -r line;do | |
key=$(echo "$line" | cut -d = -f 1) | |
value=$(echo "$line" | cut -d = -f 2) | |
sed -i "s|$key|$value|g" $buildFiles | |
done < $confFile | |
echo "Configuration applied from file" | |
# exec "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment