1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-08 06:00:36 +02:00

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.
This commit is contained in:
Maxim Cournoyer
2021-04-24 23:16:53 -04:00
parent 38aab0ea8b
commit bf1628038c

View File

@@ -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}"