Some checks failed
Build and Test / build (push) Has been cancelled
Build and Test / test (macos-latest) (push) Has been cancelled
Build and Test / test (ubuntu-latest) (push) Has been cancelled
Build and Test / test (windows-latest) (push) Has been cancelled
Build and Test / test-proxy (push) Has been cancelled
Build and Test / test-bypass-proxy (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Build and Test / test-git-container (push) Has been cancelled
Build and Test / test-output (push) Has been cancelled
Check dist / check-dist (push) Has been cancelled
25 lines
663 B
Bash
Executable File
25 lines
663 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ ! -f _temp/licensed-3.6.0.done ]; then
|
|
echo 'Clearing temp'
|
|
rm -rf _temp/licensed-3.6.0 || true
|
|
|
|
echo 'Downloading licensed'
|
|
mkdir -p _temp/licensed-3.6.0
|
|
pushd _temp/licensed-3.6.0
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.6.0/licensed-3.6.0-darwin-x64.tar.gz
|
|
else
|
|
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.6.0/licensed-3.6.0-linux-x64.tar.gz
|
|
fi
|
|
|
|
echo 'Extracting licenesed'
|
|
tar -xzf licensed.tar.gz
|
|
popd
|
|
touch _temp/licensed-3.6.0.done
|
|
else
|
|
echo 'Licensed already downloaded'
|
|
fi
|