mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-20 20:06:32 +08:00
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 <alexandru.croitor@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user