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-05-01 01:23:08 -0400
commitbf1628038ccc0dfd84e6e8f710aa95728bbfb4d8 (patch)
treee35e0f6bd7de7a592761e5c52349f277713c37d4 /etc
parent38aab0ea8b16373dcaa9976bfe82753ef8b5d2ac (diff)
downloadguix-bf1628038ccc0dfd84e6e8f710aa95728bbfb4d8.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}"