Skip to content

Commit

Permalink
removing a line with grep -v
Browse files Browse the repository at this point in the history
  • Loading branch information
silkroadnomad committed Dec 4, 2024
1 parent 595f433 commit 9a33f34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
run: |
# Remove the specific volume line and save changes in place
sed -i '/- \.\/\.doichain\/:\/home\/doichain\/\.doichain\//d' ./docker/doichain/docker-compose-regtest.yml
sed -i '/[[:space:]]*- \.\/db\/:\/var\/lib\/electrumx/d' ./docker/doichain/docker-compose-regtest.yml
grep -v './db:/var/lib/electrumx' ./docker/doichain/docker-compose-regtest.yml > temp.yml
mv temp.yml ./docker/doichain/docker-compose-regtest.yml
# Display the modified file contents
echo "📄 Displaying modified docker-compose-regtest.yml contents..."
cat ./docker/doichain/docker-compose-regtest.yml
Expand Down Expand Up @@ -61,3 +62,7 @@ jobs:
# name: playwright-report
# path: playwright-report/
# retention-days: 30
- name: Remove Specific Line from Docker Compose File
run: |
grep -v './db:/var/lib/electrumx' ./docker/doichain/docker-compose-regtest.yml > temp.yml
mv temp.yml ./docker/doichain/docker-compose-regtest.yml

0 comments on commit 9a33f34

Please sign in to comment.