0
0
mirror of https://github.com/dependabot/dependabot-core.git synced 2025-06-15 14:21:44 +00:00
Files
dependabot-core/script/setup
Victor Engmark 80c9436364 fix: Use portable Bash shebang (#8378)
Makes it possible to use Dependabot CLI on distros where the `bash`
executable is not in `/bin`, such as NixOS.
2023-12-14 08:03:17 -06:00

19 lines
490 B
Bash
Executable File

#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."
source script/_common
if [ -z "$GPR_TOKEN" ]; then
echo "Please set a value for GPR_TOKEN so you can download the dependency containers"
echo
echo "If required, generate a Personal Access Token with 'packages:read' permissions:"
echo " https://github.com/settings/tokens/new"
echo
exit 1
fi
# Log into GPR to pull downstream images
echo "$GPR_TOKEN" | docker login docker.pkg.github.com -u x --password-stdin
docker_build