mirror of
https://github.com/evilsocket/pwnagotchi.git
synced 2026-01-23 02:24:15 +00:00
check zip is installed first
Signed-off-by: Ciara Brennan <ciara.brennan@gmail.com>
This commit is contained in:
parent
d42ab1574b
commit
0ad6e887ac
1 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,11 @@ FILES_TO_BACKUP=(
|
|||
/home/pi/.bashrc
|
||||
)
|
||||
|
||||
if ! type "zip" >/dev/null 2>&1; then
|
||||
echo "This script requires zip, please resolve and try again"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ping -c 1 "${UNIT_HOSTNAME}" >/dev/null || {
|
||||
echo "@ unit ${UNIT_HOSTNAME} can't be reached, make sure it's connected and a static IP assigned to the USB interface."
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue