Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on:
push:
branches: [master]
pull_request:

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck

- name: Run shellcheck
run: shellcheck bin/wt
4 changes: 2 additions & 2 deletions bin/wt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ worktree_base() {
else
local root
root="$(repo_root)"
echo "$(dirname "$root")"
dirname "$root"
fi
}

Expand Down Expand Up @@ -270,7 +270,7 @@ main() {

case "$mode" in
pick)
pick_worktree
pick_worktree ""
;;
goto)
goto_worktree "$branch"
Expand Down
Loading