guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: guix-install.sh: Ensure GUIX_BINARY_FILE_NAME is an absolute path


From: guix-commits
Subject: 02/03: guix-install.sh: Ensure GUIX_BINARY_FILE_NAME is an absolute path.
Date: Sat, 1 May 2021 01:31:18 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit bf1628038ccc0dfd84e6e8f710aa95728bbfb4d8
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Apr 24 23:16:53 2021 -0400

    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.
---
 etc/guix-install.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 168bf72..fb221ab 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}"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]