diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-04-24 23:16:53 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-01 01:23:08 -0400 |
commit | bf1628038ccc0dfd84e6e8f710aa95728bbfb4d8 (patch) | |
tree | e35e0f6bd7de7a592761e5c52349f277713c37d4 | |
parent | 38aab0ea8b16373dcaa9976bfe82753ef8b5d2ac (diff) | |
download | guix-bf1628038ccc0dfd84e6e8f710aa95728bbfb4d8.tar.gz guix-bf1628038ccc0dfd84e6e8f710aa95728bbfb4d8.zip |
guix-install.sh: Ensure GUIX_BINARY_FILE_NAME is an absolute path.
This is necessary as the directory context is changed in the script, breaking
the use of a relative path.
* etc/guix-install.sh (main) <GUIX_BINARY_FILE_NAME>: Resolve its absolute
path via the 'realpath' command.
-rwxr-xr-x | etc/guix-install.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 168bf7234e..fb221ab044 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -563,6 +563,7 @@ main() _err "$ARCH_OS not in ${GUIX_BINARY_FILE_NAME}; aborting" fi _msg "Using manually provided binary ${GUIX_BINARY_FILE_NAME}" + GUIX_BINARY_FILE_NAME=$(realpath $GUIX_BINARY_FILE_NAME) fi sys_create_store "${GUIX_BINARY_FILE_NAME}" "${tmp_path}" |