13 lines
217 B
Bash
Executable File
13 lines
217 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
if ! all_packages_for_update=$(checkupdates 2> /dev/null | wc -l ); then
|
|
all_packages_for_update=0
|
|
fi
|
|
|
|
if [ "$all_packages_for_update" -gt 0 ]; then
|
|
echo "$all_packages_for_update"
|
|
else
|
|
echo "0"
|
|
fi
|
|
|