Skip to content

Commit

Permalink
[skip ci] fix favicon generator dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Dec 13, 2024
1 parent 2915d95 commit b1b4d81
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tools/scripts/favicon-generator.dev.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
secrets_file="./configs/envs/.env.secrets"
favicon_folder="./public/assets/favicon/"
master_url="https://raw.githubusercontent.com/blockscout/frontend/main/tools/scripts/favicon.svg"

if [ ! -f "$secrets_file" ]; then
echo "Error: File '$secrets_file' not found."
exit 1
fi

dotenv \
-v MASTER_URL=$master_url \
-- bash -c 'cd ./deploy/tools/favicon-generator && node "$(dirname "$0")/index.js"'
-- bash -c 'cd ./deploy/tools/favicon-generator && yarn install --frozen-lockfile && node "$(pwd)/index.js"'

if [ -d "$favicon_folder" ]; then
rm -r "$favicon_folder"
Expand Down

0 comments on commit b1b4d81

Please sign in to comment.