10 lines
177 B
Bash
10 lines
177 B
Bash
|
|
#!/bin/sh
|
||
|
|
set -e # Exit on any error
|
||
|
|
|
||
|
|
echo "Starting Test..."
|
||
|
|
if ping -n 1 1.1.1.1; then
|
||
|
|
echo "Test completed successfully"
|
||
|
|
else
|
||
|
|
echo "Failed to Test" >&2
|
||
|
|
exit 1
|
||
|
|
fi
|