add ci, silence invalid warning

This commit is contained in:
Dylan Araps 2020-08-04 13:56:11 +03:00
parent beafd560b0
commit 15789232c8
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 15 additions and 2 deletions

9
.github/workflows/main.yml vendored Normal file
View File

@ -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
shfm
View File

@ -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