13 lines
320 B
Bash
Executable File
13 lines
320 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ping -c 1 archlinux.org 2>/tmp/arch-maride-flavour_checks_error.log 1>/tmp/arch-maride-flavour_checks_out.log
|
|
return=$?
|
|
|
|
if [ "$return" -eq 0 ]; then
|
|
exit 0
|
|
else
|
|
echo "~> Either internet is unavailable or archlinux.org is down..."
|
|
echo "~> (ping returned $return. Maybe check the logs in /tmp."
|
|
exit 1
|
|
fi
|