From 6b424efcf1a9b0f224e4a0e32adf2ad37c60ade1 Mon Sep 17 00:00:00 2001 From: Luca Di Sera Date: Tue, 25 Jun 2024 03:45:46 +0200 Subject: [PATCH] Do not assume FHS in init-repository and configure On systems that do not follow the Filesystem Hierarchy Standard, such as guix, the hardcoded `/bin/pwd` will fail to be found so that the script will fail. Use `pwd`, instead, so that the command can be found through the normal path search mechanism. Change-Id: I519d535bcaf53119c8800cc5545da9a0e48e677a Reviewed-by: Alexandru Croitor --- configure | 2 +- init-repository | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index aab559b9..11b10a0a 100755 --- a/configure +++ b/configure @@ -3,7 +3,7 @@ # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 src_path=`dirname $0` -src_path=`(cd "$src_path"; /bin/pwd)` +src_path=`(cd "$src_path"; pwd)` optfile=config.tl.opt opttmpfile=config.tl.opt.in diff --git a/init-repository b/init-repository index 8becca95..e1d54c8c 100755 --- a/init-repository +++ b/init-repository @@ -5,7 +5,7 @@ set -eu script_dir_path=`dirname $0` -script_dir_path=`(cd "$script_dir_path"; /bin/pwd)` +script_dir_path=`(cd "$script_dir_path"; pwd)` optfile=init-repository.opt opttmpfile=init-repository.opt.in