Exit if no peer was selected
This commit is contained in:
parent
bf8aeb54b2
commit
1933f64df4
|
@ -69,6 +69,11 @@ done < "$PEERS_FILE"
|
|||
peer_index=0
|
||||
read peer_index
|
||||
|
||||
# if no selection made
|
||||
if [ ! $peer_index ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# get the avahi domain name
|
||||
AVAHI_DOMAIN=
|
||||
idx=1
|
||||
|
@ -92,9 +97,6 @@ if [ ! -f /usr/bin/irssi ]; then
|
|||
exit 3
|
||||
fi
|
||||
fi
|
||||
|
||||
MESH_RUNNING=$(pgrep ngircd > /dev/null && echo Running)' >> /usr/bin/$WATCHDOG_SCRIPT_NAME
|
||||
|
||||
irssi -c $AVAHI_DOMAIN -p $IRC_PORT -n $USER
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue