Where to start First steps track · 15 stages
Linux Labs

Bash: text processing and scripts

Quiz: reliable scripts

Question 4 of 10
Leave the quiz

Read the output

The script starts with set -e, and the app is stopped. What will the script print?

#!/bin/bash
set -e
if curl -sf -o /dev/null http://127.0.0.1:8080/health; then
    echo "up"
else
    echo "down"
fi
echo "after"
Back A–C or ↵ Sign in to answer
Loading…