configure: Add shellcheck directives to suppress warnings on harmless lines
authorMatthew Wild <mwild1@gmail.com>
Mon, 01 Oct 2018 15:33:10 +0100
changeset 9425 b7aad88c537b
parent 9424 03b50f5bd8cd
child 9426 d4e8aedc0f82
configure: Add shellcheck directives to suppress warnings on harmless lines
configure
--- a/configure	Mon Oct 01 15:32:47 2018 +0100
+++ b/configure	Mon Oct 01 15:33:10 2018 +0100
@@ -107,7 +107,8 @@
    exit 1
 }
 
-case `echo -n x` in
+# shellcheck disable=SC2039
+case $(echo -n x) in
 -n*) echo_n_flag='';;
 *)   echo_n_flag='-n';;
 esac
@@ -130,6 +131,7 @@
    then
       echo
       echo '*WARNING*: the "~" sign is not expanded in flags.'
+      # shellcheck disable=SC2016
       echo 'If you mean the home directory, use $HOME instead.'
       echo
    fi