Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use LANG=C for tar to fix unpacking archives on OSX 10.8.6

  • Loading branch information...
commit 2a07251957f67e28f3285203b9866c6653aabf3d 1 parent d8e79e8
@mpapis mpapis authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/internal/shell/vcs/handlers/archive/functions
View
8 core/internal/shell/vcs/handlers/archive/functions
@@ -78,7 +78,7 @@ Please read 'sm man curl' for instructions how to solve this problem.\n"
case "${_uri}" in
(*github.com/*/archive/*.tar.gz)
- tar -zxf "${_archive}" 2>&1 | __sm.log.debug vcs -
+ LANG=C tar -zxf "${_archive}" 2>&1 | __sm.log.debug vcs -
(( ${pipestatus[1]} == 0 )) || fetch_error extracting_archive_failed
typeset name_pattern="${_uri#*github.com/*/}"
name_pattern="${name_pattern%archive/*}"
@@ -87,15 +87,15 @@ Please read 'sm man curl' for instructions how to solve this problem.\n"
rm -rf ${name_pattern}*
;;
(*.tar) # tar
- tar -xf "${_archive}" 2>&1 | __sm.log.debug vcs -
+ LANG=C tar -xf "${_archive}" 2>&1 | __sm.log.debug vcs -
(( ${pipestatus[1]} == 0 )) || fetch_error extracting_archive_failed
;;
(*.tar.gz|*.tgz) # gzip
- tar -zxf "${_archive}" 2>&1 | __sm.log.debug vcs -
+ LANG=C tar -zxf "${_archive}" 2>&1 | __sm.log.debug vcs -
(( ${pipestatus[1]} == 0 )) || fetch_error extracting_archive_failed
;;
(*.tar.bz2|*.tbz2) # bzip
- tar -jxf "${_archive}" 2>&1 | __sm.log.debug vcs -
+ LANG=C tar -jxf "${_archive}" 2>&1 | __sm.log.debug vcs -
(( ${pipestatus[1]} == 0 )) || fetch_error extracting_archive_failed
;;
(*.tar.xz) # LZMA
Please sign in to comment.
Something went wrong with that request. Please try again.