Skip to content

Commit

Permalink
Update bootstrap SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescurtin committed Sep 8, 2023
1 parent 8311d3f commit f0cdd0b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,12 @@ jobs:
run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest
- name: Check formatting
run: shfmt -f . | grep -v meta/dotbot | xargs shfmt -s -d
correct-sha256:
name: SHA256 in README is correct
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Update SHA script
run: bin/update-bootstrap-sha
- name: Check that there is no diff
run: git diff --exit-code
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,24 @@ $ cd ~/repos/dotfiles
./install-profile mac
```

## Testing
## Developing and Testing

If you update the `bootstrap/bootstrap.sh` file, you must also run

```bash
bin/update-bootstrap-sha
```

To run all lints and tests:
```bash
$ ./test.sh
bin/test
```


TODOS:
* How to diff brewfiles
* ssh config?
* Get resident keys?
* `ssh-keygen -K`
* Describe way of identifying untracked brew packages
* `brew bundle --verbose cleanup --file=homebrew/Brewfile.personal`
File renamed without changes.
5 changes: 5 additions & 0 deletions bin/update-bootstrap-sha
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
BOOTSTRAP_SHA=$(sha256sum "${SCRIPT_DIR}/../bootstrap/bootstrap.sh" | awk '{ print $1 }')
# shellcheck disable=SC2016
sed -i '' -e 's/\(sha256 checksum: `\)\(.*\)\(`\)/\1'"${BOOTSTRAP_SHA}"'\3/g' "${SCRIPT_DIR}/../README.md"
1 change: 1 addition & 0 deletions bootstrap/macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ setup_macos_dock() {
}

setup_macos_preferences() {
# TODO: FIX/Add to this
osascript -e 'tell application "System Preferences" to quit'

# Trackpad: enable tap to click for this user and for the login screen
Expand Down
3 changes: 3 additions & 0 deletions homebrew/Brewfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ brew "zlib"
# Yubikey/GPG
brew "gnupg"
brew "hopenpgp-tools"
brew "libfido2"
brew "openssh"
brew "pinentry-mac"
brew "ykman"
brew "ykpers"
cask "yubico-authenticator"
cask "yubico-yubikey-manager"

Expand Down

0 comments on commit f0cdd0b

Please sign in to comment.