Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
12cbcabc
Commit
12cbcabc
authored
May 13, 2021
by
Andrew Murray
Browse files
Expand xz file with tar on macOS
parent
5ff77918
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
common_utils.sh
common_utils.sh
+5
-1
No files found.
common_utils.sh
View file @
12cbcabc
...
@@ -200,7 +200,11 @@ function untar {
...
@@ -200,7 +200,11 @@ function untar {
gz|tgz) tar -zxf
$in_fname
;;
gz|tgz) tar -zxf
$in_fname
;;
bz2) tar -jxf
$in_fname
;;
bz2) tar -jxf
$in_fname
;;
zip) unzip -qq
$in_fname
;;
zip) unzip -qq
$in_fname
;;
xz) unxz -c
$in_fname
| tar -xf - ;;
xz) if [ -n "
$IS_MACOS
" ]; then
tar -xf
$in_fname
else
unxz -c
$in_fname
| tar -xf -
fi ;;
*) echo Did not recognize extension
$extension
; exit 1 ;;
*) echo Did not recognize extension
$extension
; exit 1 ;;
esac
esac
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment