Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Make install.sh Alpine linux compatible #623

Merged
merged 2 commits into from
Sep 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ yarn_get_tarball() {
yarn_verify_integrity $tarball_tmp

printf "$cyan> Extracting to ~/.yarn...$reset\n"
# All this dance is because `tar --strip=1` does not work everywhere
temp=$(mktemp -d)
tar zxf $tarball_tmp -C "$temp"
mkdir .yarn
tar zxf $tarball_tmp -C .yarn --strip 1 # extract tarball
mv "$temp"/*/* .yarn
rm -rf "$temp"
rm $tarball_tmp*
else
printf "$red> Failed to download $url.$reset\n"
Expand Down