[PATCH 2/3] install-dependencies: work around a permission problem
- From
Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Nov 1, 2026, 11:02 UTC
- Message-ID
- <15e79c5cfcd9eb59b79daa1aee7a54f433d8509b.1793530936.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.2478.git.git.1793530936.gitgitgadget@gmail.com>
From: Harald Nordgren <haraldnordgren@gmail.com>
When replacing `dirname`, elevation is required, otherwise the command will fail with:
+ ln -sfT /usr/bin/gnudirname /usr/bin/dirname ln: failed to create symbolic link '/usr/bin/dirname': Already exists
as observed in https://github.com/git-for-windows/git/actions/runs/40223871341/job/121274294974?pr=6473#step:3:909
Based-on-patch-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com> --- ci/install-dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh index 4b1733ad15..ed2d09a0a9 100755 --- a/ci/install-dependencies.sh +++ b/ci/install-dependencies.sh @@ -80,7 +80,7 @@ ubuntu-*|i386/debian-*|debian-*) # See <https://github.com/uutils/coreutils/issues/10508>. if test -x /usr/bin/gnudirname then - ln -sfT /usr/bin/gnudirname /usr/bin/dirname + sudo ln -sfT /usr/bin/gnudirname /usr/bin/dirname fi case "$distro" in
-- gitgitgadget