Skip to content

Commit

Permalink
add ci, silence invalid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Aug 4, 2020
1 parent beafd56 commit 1578923
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Shellcheck
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run shellcheck.
run: shellcheck shfm
8 changes: 6 additions & 2 deletions shfm
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ term_reset() {
}

term_resize() {
set -f
set +f -- $(stty size)
# false-positive, behavior intentional, globbing is disabled.
# shellcheck disable=2046
{
set -f
set +f -- $(stty size)
}

LINES=$1 COLUMNS=$2

Expand Down

0 comments on commit 1578923

Please sign in to comment.