mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
aa-decode: "fix" all remaining shellcheck style violations
This commit is contained in:
parent
985f9ca788
commit
6db9ebfd15
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,7 @@ if [ -n "$1" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
d=`decode "$e"`
|
d=$(decode "$e")
|
||||||
if [ -z "$d" ]; then
|
if [ -z "$d" ]; then
|
||||||
echo "Could not decode string"
|
echo "Could not decode string"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -71,8 +71,12 @@ fi
|
||||||
# For now just look at 'name=...' and 'profile=...',
|
# For now just look at 'name=...' and 'profile=...',
|
||||||
# so validate input against this and output based on it.
|
# so validate input against this and output based on it.
|
||||||
# TODO: better handle other cases too
|
# 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=SC2162
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
# shellcheck disable=SC2001
|
||||||
|
# shellcheck disable=SC2006
|
||||||
while read line ; do
|
while read line ; do
|
||||||
|
|
||||||
# check if line contains encoded name= or profile=
|
# check if line contains encoded name= or profile=
|
||||||
|
|
Loading…
Add table
Reference in a new issue