add ci, silence invalid warning

This commit is contained in:
Dylan Araps committed 2020-08-04 13:56:11 +03:00
1 parent beafd560b0
commit 15789232c8
2 files changed
+15 -2

No files matched your search

+9
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
+6 -2
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