aa-decode: "fix" all remaining shellcheck style violations

This commit is contained in:
intrigeri 2022-02-13 08:47:06 +00:00
parent 985f9ca788
commit 6db9ebfd15

View file

@ -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=