From 0502fceb5382e53b89ec867d66dac5be1a0e7176 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 7 Jun 2024 11:07:16 +0200 Subject: bin/debian-edu-fai_updateconfigspace: Fix is-inside-(Git-)work-tree check. --- bin/debian-edu-fai_updateconfigspace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/debian-edu-fai_updateconfigspace b/bin/debian-edu-fai_updateconfigspace index eea0e6b..6cb57c6 100755 --- a/bin/debian-edu-fai_updateconfigspace +++ b/bin/debian-edu-fai_updateconfigspace @@ -46,7 +46,7 @@ if [ "${FAI_CONFIGDIR_REAL}" = "/usr/share/debian-edu-fai/fai/config" ]; then echo "ERROR: FAI_CONFIGDIR points to '${FAI_CONFIGDIR_REAL}'." echo "ERROR: Such a setup is not supported..." exit 1 -elif command -v git 1>/dev/null && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then +elif command -v git 1>/dev/null && [ "$(cd "${FAI_CONFIGDIR_REAL}"; git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then # FAI config space is managed by Git, don't do anything then... : else -- cgit v1.2.3