Compare commits
No commits in common. "fa471fdf9f0cd95ff651f1b1311dd4a100226f1e" and "7caf5b168c466a1524f84d28f039b867b245f9ca" have entirely different histories.
fa471fdf9f
...
7caf5b168c
|
@ -8,8 +8,7 @@ _show_help=0
|
||||||
|
|
||||||
if ! [ -f "$_target_file" ] ;
|
if ! [ -f "$_target_file" ] ;
|
||||||
then
|
then
|
||||||
echo "notify-updates: cannot access '$_target_file': File not found"
|
echo "Error - file not found: $_target_file"
|
||||||
echo "notify-updates: try executing 'pacman-update-count.sh'"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,6 @@
|
||||||
_updates_available="0"
|
_updates_available="0"
|
||||||
_target_file="/tmp/pacman-update-count"
|
_target_file="/tmp/pacman-update-count"
|
||||||
_user="ray"
|
_user="ray"
|
||||||
_user_id=$(id -u)
|
|
||||||
|
|
||||||
if ! [ "$_user_id" -eq 0 ] ; then
|
|
||||||
echo "pacman-update-count.sh: insufficient priviliges: must be run as root"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
pacman -Sy
|
pacman -Sy
|
||||||
_query_output=$(pacman -Qu)
|
_query_output=$(pacman -Qu)
|
||||||
|
|
Loading…
Reference in New Issue