omissis/go-jsonschema

View on GitHub
scripts/asdf-update-tools.sh

Summary

Maintainability
Test Coverage
#!/bin/sh

# shellcheck disable=SC2016

set -e
set -o errexit -o nounset

cut -d ' ' -f 1 < .tool-versions | \
  xargs -I {} -n 1 sh -c 'echo {} $(asdf latest {} 2>/dev/null)' > \
  .tool-versions.tmp

mv .tool-versions.tmp .tool-versions