To keep original echo intentionally disable SC2046 too
This commit is contained in:
parent
867b9cb102
commit
a40a81d36f
7 changed files with 7 additions and 7 deletions
|
@ -21,5 +21,5 @@
|
||||||
# Retrieve all repo id nummbers - parsed zypper output
|
# Retrieve all repo id nummbers - parsed zypper output
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005,SC2046
|
||||||
echo $(zypper lr | cut -d'|' -f 1 | grep -E '^[0-9]')
|
echo $(zypper lr | cut -d'|' -f 1 | grep -E '^[0-9]')
|
||||||
|
|
|
@ -24,5 +24,5 @@
|
||||||
# simpler command which works only on SLES11 SP3 or newer:
|
# simpler command which works only on SLES11 SP3 or newer:
|
||||||
# echo $(zypper lr -E | cut -d'|' -f 1 | grep -E '^[0-9]')
|
# echo $(zypper lr -E | cut -d'|' -f 1 | grep -E '^[0-9]')
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005,SC2046
|
||||||
echo $(zypper lr | grep -E '^[0-9]([^|]+\|){3,3} Yes' | cut -d'|' -f 1)
|
echo $(zypper lr | grep -E '^[0-9]([^|]+\|){3,3} Yes' | cut -d'|' -f 1)
|
||||||
|
|
|
@ -26,5 +26,5 @@ if [ -f "$__object/parameter/uri" ]; then
|
||||||
else
|
else
|
||||||
uri="$__object_id"
|
uri="$__object_id"
|
||||||
fi
|
fi
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005,SC2046
|
||||||
echo $(zypper lr -u | grep -F "$uri" | cut -d'|' -f 1 | grep -E '^[0-9]')
|
echo $(zypper lr -u | grep -F "$uri" | cut -d'|' -f 1 | grep -E '^[0-9]')
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
# echo $(zypper lr -u -E | cut -d'|' -f 1 | grep -E '^[0-9]')
|
# echo $(zypper lr -u -E | cut -d'|' -f 1 | grep -E '^[0-9]')
|
||||||
# on older systems, zypper doesn't know the parameter -E
|
# on older systems, zypper doesn't know the parameter -E
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005,SC2046
|
||||||
echo $(zypper lr -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]')
|
echo $(zypper lr -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]')
|
||||||
|
|
|
@ -28,5 +28,5 @@ fi
|
||||||
# simpler command which works only on SLES11 SP3 or newer:
|
# simpler command which works only on SLES11 SP3 or newer:
|
||||||
# echo $(zypper ls -u -E | grep -E "\<$uri\>" | cut -d'|' -f 1 )
|
# echo $(zypper ls -u -E | grep -E "\<$uri\>" | cut -d'|' -f 1 )
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005,SC2046
|
||||||
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\\<$uri\\>" | cut -d'|' -f 1)
|
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\\<$uri\\>" | cut -d'|' -f 1)
|
||||||
|
|
|
@ -23,5 +23,5 @@
|
||||||
# simpler command which works only on SLES11 SP3 or newer:
|
# simpler command which works only on SLES11 SP3 or newer:
|
||||||
# echo $(zypper ls -u -E | cut -d'|' -f 1 | grep -E '^[0-9]')
|
# echo $(zypper ls -u -E | cut -d'|' -f 1 | grep -E '^[0-9]')
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005,SC2046
|
||||||
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]')
|
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]')
|
||||||
|
|
|
@ -25,5 +25,5 @@ if [ -f "$__object/parameter/uri" ]; then
|
||||||
else
|
else
|
||||||
uri="/$__object_id"
|
uri="/$__object_id"
|
||||||
fi
|
fi
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005,SC2046
|
||||||
echo $(zypper ls -u | awk 'BEGIN { FS = "[ ]+\\|[ ]+" } ; $4 == "Yes" && $NF == "'"$uri"'" {print $NF}')
|
echo $(zypper ls -u | awk 'BEGIN { FS = "[ ]+\\|[ ]+" } ; $4 == "Yes" && $NF == "'"$uri"'" {print $NF}')
|
||||||
|
|
Loading…
Reference in a new issue