浏览代码

Fix some "naughty" typos/bugs

Tianon Gravi 2 年之前
父节点
当前提交
a9d10c1219
共有 2 个文件被更改,包括 2 次插入8 次删除
  1. 1 1
      naughty-commits.sh
  2. 1 7
      naughty-from.sh

+ 1 - 1
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 -}}

+ 1 - 7
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'