Skip to content

Commit

Permalink
better msg.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Feb 27, 2024
1 parent e943d08 commit 07f7e14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ YELLOW="\033[93m"
BOLD="\033[1m"
RESET="\033[0m"

PATH=$PATH:./build-system/scripts
source ./build-system/scripts/setup_env '' '' '' > /dev/null

if [ "$CMD" = "clean" ]; then
echo "WARNING: This will erase *all* untracked files, including hooks and submodules."
Expand All @@ -38,15 +38,14 @@ if [ "$CMD" = "clean" ]; then

exit 0
elif [ "$CMD" = "full" ]; then
export USE_CACHE=
if can_use_ci_cache; then
echo -e "${BOLD}${YELLOW}WARNING: Performing a full bootstrap. Consider leveraging './bootstrap.sh fast' to use CI cache.${RESET}"
echo
fi
elif [ "$CMD" = "fast" ]; then
export USE_CACHE=1
if ! can_use_ci_cache; then
echo -e "${BOLD}${YELLOW}WARNING: Either docker or aws credentials are missing. Install docker and request credentials.${RESET}"
echo -e "${BOLD}${YELLOW}WARNING: Either docker or aws credentials are missing. Install docker and request credentials. Note this is for internal aztec devs only.${RESET}"
exit 1
fi
else
Expand Down
3 changes: 1 addition & 2 deletions build-system/scripts/can_use_ci_cache
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
set -euo pipefail

type docker &> /dev/null && [ -f ~/.aws/credentials ] || exit 1
type docker &> /dev/null && docker ps 2>&1 > /dev/null && [ -f ~/.aws/credentials ] && ecr_login > /dev/null || exit 1

0 comments on commit 07f7e14

Please sign in to comment.