From 3e1c35f36de93675cb9cf3e6757170177120aabd Mon Sep 17 00:00:00 2001 From: kyodev Date: Sun, 10 Jun 2018 23:42:50 +0200 Subject: [PATCH] maj --- docs/scripts/getIp.md | 2 +- scripts/getIp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/scripts/getIp.md b/docs/scripts/getIp.md index b377907..bb2e051 100644 --- a/docs/scripts/getIp.md +++ b/docs/scripts/getIp.md @@ -1,7 +1,7 @@ # getIp -![version: 4.16.1](https://img.shields.io/badge/version-4.16.1-blue.svg?longCache=true&style=for-the-badge) +![version: 2.12.0](https://img.shields.io/badge/version-2.12.0-blue.svg?longCache=true&style=for-the-badge) ![bash langage](https://img.shields.io/badge/bash-4-brightgreen.svg?longCache=true&style=for-the-badge) ![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg?longCache=true&style=for-the-badge) diff --git a/scripts/getIp b/scripts/getIp index 5898a70..9473f1a 100755 --- a/scripts/getIp +++ b/scripts/getIp @@ -1,8 +1,10 @@ #!/bin/bash -# shellcheck disable=SC2016,SC2119 +# shellcheck disable=SC2016,SC2119,SC1117,SC2206 # SC2016 Expressions don't expand in single quotes # SC2119 Use function "$@" if function's $1 should mean script's $1 (??) +# SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n". +# SC2206: Quote to prevent word splitting, or split robustly with mapfile or read -a. version=2.12.0 date="09/03/2018" @@ -847,6 +849,7 @@ options="$*" [ "$options" ] || options="--local" for j in $options; do + # shellcheck disable=SC2221,SC2222 case $j in !(--public|-4|-6|-46|-64) ) f_affichage