From 15789232c8209d52e9a9fddd440febcf357f2b4d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 4 Aug 2020 13:56:11 +0300 Subject: [PATCH] add ci, silence invalid warning --- .github/workflows/main.yml | 9 +++++++++ shfm | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5bb90af --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/shfm b/shfm index de89e65..9c03c08 100755 --- a/shfm +++ b/shfm @@ -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