forked from ungleich-public/cdist
Fix SC2005
This commit is contained in:
parent
e551348cd7
commit
5ed95ce93b
9 changed files with 9 additions and 9 deletions
|
@ -25,7 +25,7 @@
|
||||||
os=$("$__explorer/os")
|
os=$("$__explorer/os")
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"macosx")
|
"macosx")
|
||||||
echo "$(sysctl -n hw.physicalcpu)"
|
sysctl -n hw.physicalcpu
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
os=$("$__explorer/os")
|
os=$("$__explorer/os")
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"macosx")
|
"macosx")
|
||||||
echo "$(system_profiler SPHardwareDataType | grep "Number of Processors" | awk -F': ' '{print $2}')"
|
system_profiler SPHardwareDataType | grep "Number of Processors" | awk -F': ' '{print $2}'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -21,4 +21,4 @@
|
||||||
# Retrieve all repo id nummbers - parsed zypper output
|
# Retrieve all repo id nummbers - parsed zypper output
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
echo $(zypper lr | cut -d'|' -f 1 | grep -E '^[0-9]')
|
zypper lr | cut -d'|' -f 1 | grep -E '^[0-9]'
|
||||||
|
|
|
@ -23,4 +23,4 @@
|
||||||
#
|
#
|
||||||
# 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]')
|
||||||
echo $(zypper lr | grep -E '^[0-9]([^|]+\|){3,3} Yes' | cut -d'|' -f 1)
|
zypper lr | grep -E '^[0-9]([^|]+\|){3,3} Yes' | cut -d'|' -f 1
|
||||||
|
|
|
@ -26,4 +26,4 @@ if [ -f "$__object/parameter/uri" ]; then
|
||||||
else
|
else
|
||||||
uri="$__object_id"
|
uri="$__object_id"
|
||||||
fi
|
fi
|
||||||
echo $(zypper lr -u | grep -F "$uri" | cut -d'|' -f 1 | grep -E '^[0-9]' )
|
zypper lr -u | grep -F "$uri" | cut -d'|' -f 1 | grep -E '^[0-9]'
|
||||||
|
|
|
@ -24,4 +24,4 @@
|
||||||
# simpler command which works only on SLES11 SP3 or newer:
|
# simpler command which works only on SLES11 SP3 or newer:
|
||||||
# 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
|
||||||
echo $(zypper lr -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]')
|
zypper lr -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]'
|
||||||
|
|
|
@ -27,4 +27,4 @@ else
|
||||||
fi
|
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 )
|
||||||
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\<$uri\>" | cut -d'|' -f 1 )
|
zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\<$uri\>" | cut -d'|' -f 1
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
#
|
#
|
||||||
# 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]')
|
||||||
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]')
|
zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | cut -d'|' -f 1 | grep -E '^[0-9]'
|
||||||
|
|
|
@ -25,4 +25,4 @@ if [ -f "$__object/parameter/uri" ]; then
|
||||||
else
|
else
|
||||||
uri="/$__object_id"
|
uri="/$__object_id"
|
||||||
fi
|
fi
|
||||||
echo $(zypper ls -u | awk 'BEGIN { FS = "[ ]+\\|[ ]+" } ; $4 == "Yes" && $NF == "'$uri'" {print $NF}')
|
zypper ls -u | awk 'BEGIN { FS = "[ ]+\\|[ ]+" } ; $4 == "Yes" && $NF == "'$uri'" {print $NF}'
|
||||||
|
|
Loading…
Reference in a new issue