Skip to content
Snippets Groups Projects
Unverified Commit f72bafe3 authored by Morgan Smith's avatar Morgan Smith Committed by Tobias Geerinckx-Rice
Browse files

guix-install.sh: Be POSIX-compliant.


* etc/guix-install.sh (guix_get_bin_list): Call grep with an extended
regular expression instead of a non-POSIX Perl regular expression.
(sys_create_store): Remove ‘--warning=no-timestamp’ argument to tar.

Signed-off-by: default avatarTobias Geerinckx-Rice <me@tobias.gr>
parent 13062838
No related branches found
No related tags found
No related merge requests found
...@@ -212,7 +212,7 @@ guix_get_bin_list() ...@@ -212,7 +212,7 @@ guix_get_bin_list()
| sort -Vu)") | sort -Vu)")
latest_ver="$(echo "$bin_ver_ls" \ latest_ver="$(echo "$bin_ver_ls" \
| grep -oP "([0-9]{1,2}\.){2}[0-9]{1,2}" \ | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}" \
| tail -n1)" | tail -n1)"
default_ver="guix-binary-${latest_ver}.${ARCH_OS}" default_ver="guix-binary-${latest_ver}.${ARCH_OS}"
...@@ -268,8 +268,7 @@ sys_create_store() ...@@ -268,8 +268,7 @@ sys_create_store()
_debug "--- [ $FUNCNAME ] ---" _debug "--- [ $FUNCNAME ] ---"
cd "$tmp_path" cd "$tmp_path"
tar --warning=no-timestamp \ tar --extract \
--extract \
--file "$pkg" && --file "$pkg" &&
_msg "${PAS}unpacked archive" _msg "${PAS}unpacked archive"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment