mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Wget timestamping incompatible with -O
This commit is contained in:
parent
e6b6abeb9f
commit
0f600ea0f0
1 changed files with 9 additions and 4 deletions
|
|
@ -4,13 +4,18 @@ set -ex
|
|||
|
||||
. /etc/lsb-release
|
||||
if [ "$DISTRIB_CODENAME" = "trusty" ]; then
|
||||
SWIFT_URL='https://swift.org/builds/swift-4.0.3-release/ubuntu1404/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu14.04.tar.gz'
|
||||
SWIFT_TARBALL="swift-4.0.3-RELEASE-ubuntu14.04.tar.gz"
|
||||
SWIFT_URL="https://swift.org/builds/swift-4.0.3-release/ubuntu1404/swift-4.0.3-RELEASE/$SWIFT_TARBALL"
|
||||
else
|
||||
SWIFT_URL='https://swift.org/builds/swift-4.0.3-release/ubuntu1604/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu16.04.tar.gz'
|
||||
SWIFT_TARBALL="swift-4.0.3-RELEASE-ubuntu16.04.tar.gz"
|
||||
SWIFT_URL="https://swift.org/builds/swift-4.0.3-release/ubuntu1604/swift-4.0.3-RELEASE/$SWIFT_TARBALL"
|
||||
fi
|
||||
|
||||
pushd "$HOME"/.swift
|
||||
wget -N -c "$SWIFT_URL"
|
||||
popd
|
||||
|
||||
mkdir -p /tmp/swift
|
||||
pushd /tmp/swift
|
||||
wget -N -c "$SWIFT_URL" -O "$HOME"/.swift/swift.tar.gz
|
||||
tar -xf "$HOME"/.swift/swift.tar.gz --strip 1
|
||||
tar -xf "$HOME"/.swift/"$SWIFT_TARBALL" --strip 1
|
||||
popd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue