From 44110223b65aa1982252f86086cdcfa111ab8de3 Mon Sep 17 00:00:00 2001 From: Martin Scheidt Date: Thu, 10 Mar 2022 15:41:17 +0100 Subject: [PATCH] minor changes --- .github/workflows/debug.yml | 6 +++--- .github/workflows/release.yaml | 2 +- .github/workflows/testing.yml | 4 ++-- build.sh | 10 ++++------ 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 0e189b0..52eb32f 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -52,10 +52,10 @@ jobs: packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt # - name: "install tikz-trackschematic" - # run: ./build.sh --noninteractive --install-dev + # run: ./build.sh --non-interactive --install-dev # - name: "test tikz-trackschematic" - # run: ./build.sh --noninteractive --test --verbose + # run: ./build.sh --non-interactive --test --verbose # ## create varibale ${{ steps.tag.outputs.tag }} # - name: "get tag" @@ -66,7 +66,7 @@ jobs: # strip_v: false # - name: "create tikz-trackschematic package" - # run: ./build.sh --noninteractive --release ${{ steps.tag.outputs.tag }} + # run: ./build.sh --non-interactive --release ${{ steps.tag.outputs.tag }} ## opening a debug console - name: Setup upterm session diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6ad9f32..d11359c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,7 +27,7 @@ jobs: strip_v: false - name: "create tikz-trackschematic package" - run: ./build.sh --noninteractive --release ${{ steps.tag.outputs.tag }} + run: ./build.sh --non-interactive --release ${{ steps.tag.outputs.tag }} - name: "create release" id: create_release diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 3c85dd6..668164a 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -36,7 +36,7 @@ jobs: packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt - name: "install tikz-trackschematic" - run: ./build.sh --noninteractive --install-dev + run: ./build.sh --non-interactive --install-dev - name: "test tikz-trackschematic" - run: ./build.sh --noninteractive --test --verbose + run: ./build.sh --non-interactive --test --verbose diff --git a/build.sh b/build.sh index cbaeca3..499d0cf 100755 --- a/build.sh +++ b/build.sh @@ -29,7 +29,7 @@ install, test or release a package for tikz-trackschematic -m, --messy Do not clean up afterwards. - -n, --noninteractive Run script with no interaction. + -n, --non-interactive Run script with no interaction. -i, --install-dev Install as dev-package in local TeX Live environment. The -i option overrides any previous -u option. @@ -56,9 +56,7 @@ CLEANUP=1 # set by cli argument process_arguments() { while true; do # loop condition - test for empty string: - if [ -z "$1" ]; then - break; - fi + if [ -z "$1" ]; then break; fi # loop test case $1 in -h|--help) @@ -77,7 +75,7 @@ process_arguments() { -m|--messy) CLEANUP=0 ;; - -n|--noninteractive) + -n|--non-interactive) NOINTERACT=1 ;; -i|--install-dev) @@ -136,7 +134,7 @@ fi log() { NO_LINE_BREAK=0 COLOR=${COLOR_RESET} - if [ ${2:0:2} = "-n" ]; then + if [ "$2" = "-n" ]; then NO_LINE_BREAK=1 fi if [ $1 = 1 ]; then