From ce9e050f15684a386827dac3b6d2dc6555a8211c Mon Sep 17 00:00:00 2001 From: yorickdowne <71337066+yorickdowne@users.noreply.github.com> Date: Sun, 5 May 2024 16:11:08 +0200 Subject: [PATCH] Better prep (#1821) --- ethd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ethd b/ethd index 7b61cf0d..cd45d2d3 100755 --- a/ethd +++ b/ethd @@ -1219,15 +1219,15 @@ update() { fi # This preps for a removal of ext-network.yml in a future update, after Pectra ${__as_owner} cp ext-network.yml ext-network.yml.bak - if git ls-files -v | grep -q "^h" | grep -q "ext-network.yml"; then + if git ls-files -v | grep -q "^h" | grep -q "ext-network.yml$"; then ${__as_owner} git update-index --no-assume-unchanged ext-network.yml fi ${__as_owner} git restore ext-network.yml ${__as_owner} git pull origin main ${__as_owner} cp ext-network.yml.bak ext-network.yml -# This will be removed when ext-network.yml gets removed, and after the closing fi -# it'll do --no-assume-unchanged again - ${__as_owner} git update-index --assume-unchanged ext-network.yml + if git ls-files -v | grep -q "ext-network.yml$"; then + ${__as_owner} git update-index --assume-unchanged ext-network.yml + fi else export ETHDPINNED="${value}" ${__as_owner} git fetch --tags