summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-04-24 23:16:53 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-04-29 14:09:22 -0400
commit8214e70fa8da95683cccdf45c674b8be755c27db (patch)
tree31d735e204c2dd617ac9a283322ea6a42cf10644 /etc
parent68110f72880a5b57fad34a7868f1f0722d52842a (diff)
downloadguix-8214e70fa8da95683cccdf45c674b8be755c27db.tar.gz
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.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/guix-install.sh1
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}"