Skip to content

Commit

Permalink
L #-: Shellcheck exclude SC2317, fix sed/suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel committed Oct 24, 2023
1 parent e409ebc commit 8d97e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ jobs:
- uses: actions/checkout@v2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC2317
2 changes: 1 addition & 1 deletion minione
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ get_distname_and_version() {
[[ "${DIST}" = Red ]] && DIST="RedHat"
elif [ -f /etc/os-release ]; then
DIST=$(grep ^NAME= /etc/os-release | cut -d\" -f2)
DIST=$(echo $DIST | sed 's/ .*//')
DIST=${DIST%% *} # remove everything after a space
VER=$(grep ^VERSION_ID= /etc/os-release | cut -d\" -f2)
elif [ -f /etc/lsb-release ]; then
DIST=$(grep ^DISTRIB_ID= /etc/lsb-release | cut -d= -f2)
Expand Down

0 comments on commit 8d97e7f

Please sign in to comment.