From 6db9ebfd155d89303d2a9d1b786f019d847ac43a Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 13 Feb 2022 08:47:06 +0000 Subject: [PATCH] aa-decode: "fix" all remaining shellcheck style violations --- utils/aa-decode | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/aa-decode b/utils/aa-decode index bfca7bdcb..f02f362c7 100755 --- a/utils/aa-decode +++ b/utils/aa-decode @@ -58,7 +58,7 @@ if [ -n "$1" ]; then exit 1 fi - d=`decode "$e"` + d=$(decode "$e") if [ -z "$d" ]; then echo "Could not decode string" exit 1 @@ -71,8 +71,12 @@ fi # For now just look at 'name=...' and 'profile=...', # so validate input against this and output based on it. # TODO: better handle other cases too +# This loop relies on subtle shell quoting/escaping behavior, and +# non-trivial surgery would be required to make shellcheck happy. # shellcheck disable=SC2162 # shellcheck disable=SC2086 +# shellcheck disable=SC2001 +# shellcheck disable=SC2006 while read line ; do # check if line contains encoded name= or profile=