Skip to content

Commit 6b424ef

Browse files
committed
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 <[email protected]>
1 parent e752c81 commit 6b424ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
44

55
src_path=`dirname $0`
6-
src_path=`(cd "$src_path"; /bin/pwd)`
6+
src_path=`(cd "$src_path"; pwd)`
77

88
optfile=config.tl.opt
99
opttmpfile=config.tl.opt.in

Diff for: init-repository

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -eu
66

77
script_dir_path=`dirname $0`
8-
script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
8+
script_dir_path=`(cd "$script_dir_path"; pwd)`
99

1010
optfile=init-repository.opt
1111
opttmpfile=init-repository.opt.in

0 commit comments

Comments
 (0)