Skip to content

Commit

Permalink
Change script for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
VladBrok committed Jul 6, 2022
1 parent 374066e commit a6e568b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Client/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env

sed -i 's/isDev = true/isDev = false/' ./scripts/config.js
file=./scripts/config.js
found=$(grep 'isDev = true' $file)
found=${found:0:1}

sed -i 's/isDev = true/isDev = false/' $file
yes "" | surge
sed -i 's/isDev = false/isDev = true/' ./scripts/config.js

if [ -n "$found" ]
then
sed -i 's/isDev = false/isDev = true/' $file
fi

0 comments on commit a6e568b

Please sign in to comment.