Bump a Semantic Version
Release pipelines bump the version before tagging. Write the helper they call.
Create the executable script /home/student/bin/bump.sh PART [FILE]:
FILE defaults to VERSION in the current directory. It holds one version like 1.4.9 (MAJOR.MINOR.PATCH, numbers only).PART is major, minor or patch:
major: 1.4.9 → 2.0.0minor: 1.4.9 → 1.5.0patch: 1.4.9 → 1.4.10FILE (one line) and prints it on stdout.PART): print usage: bump.sh major|minor|patch [FILE] to stderr and exit 2.1, and leave the file unchanged.About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Part of Shell Scripting for Automation. Next step: Run Health Checks in Parallel
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.