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
|
peer_index=0
|
||||||
read peer_index
|
read peer_index
|
||||||
|
|
||||||
|
# if no selection made
|
||||||
|
if [ ! $peer_index ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# get the avahi domain name
|
# get the avahi domain name
|
||||||
AVAHI_DOMAIN=
|
AVAHI_DOMAIN=
|
||||||
idx=1
|
idx=1
|
||||||
|
@ -92,9 +97,6 @@ if [ ! -f /usr/bin/irssi ]; then
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MESH_RUNNING=$(pgrep ngircd > /dev/null && echo Running)' >> /usr/bin/$WATCHDOG_SCRIPT_NAME
|
|
||||||
|
|
||||||
irssi -c $AVAHI_DOMAIN -p $IRC_PORT -n $USER
|
irssi -c $AVAHI_DOMAIN -p $IRC_PORT -n $USER
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue