Skip to content

Commit

Permalink
only run when there is id set
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihendry committed Apr 14, 2012
1 parent eacabd2 commit f79ba32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion etc/webc/updates.sh
Expand Up @@ -46,9 +46,12 @@ update_keys() {

while has_network
do
! cmdline | grep -qs noupdates && {
if test -s /etc/webc/id && source /etc/webc/webc.conf
then
! cmdline_has noupdates && {
update_keys
updates
}
fi
sleep $updates_interval
done

0 comments on commit f79ba32

Please sign in to comment.