~ruther/guix-local

bf1628038ccc0dfd84e6e8f710aa95728bbfb4d8 — Maxim Cournoyer 5 years ago 38aab0e
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.
1 files changed, 1 insertions(+), 0 deletions(-)

M etc/guix-install.sh
M etc/guix-install.sh => etc/guix-install.sh +1 -0
@@ 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}"