From a9d10c12193bf1de6893e0ab54e5f0ac294813f6 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 17 Feb 2023 13:04:45 -0800 Subject: [PATCH] Fix some "naughty" typos/bugs --- naughty-commits.sh | 2 +- naughty-from.sh | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/naughty-commits.sh b/naughty-commits.sh index 8943159bc2c1b..d2d8ace605ea0 100755 --- a/naughty-commits.sh +++ b/naughty-commits.sh @@ -16,7 +16,7 @@ fi imgs="$(bashbrew list --repos "$@" | sort -u)" for img in $imgs; do - bashbrew fetch --all "$img" # force `git fetch` + bashbrew fetch "$img" # force `git fetch` commits="$( bashbrew cat --format ' {{- range $e := .Entries -}} diff --git a/naughty-from.sh b/naughty-from.sh index 34b2d4a4dcb12..c5a717d3312f6 100755 --- a/naughty-from.sh +++ b/naughty-from.sh @@ -1,13 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -: "${BASHBREW_CACHE:=$HOME/.cache/bashbrew}" -export BASHBREW_CACHE BASHBREW_ARCH= - -if [ ! -d "$BASHBREW_CACHE/git" ]; then - # initialize the "bashbrew cache" - bashbrew --arch amd64 from --uniq --apply-constraints hello-world:linux > /dev/null -fi +export BASHBREW_ARCH= if [ "$#" -eq 0 ]; then set -- '--all'