Skip to content

Instantly share code, notes, and snippets.

View mschabhuettl's full-sized avatar

Matthias Schabhüttl mschabhuettl

View GitHub Profile
mschabhuettl /
Last active April 2, 2024 03:11
# Define the base directory for downloads relative to the script's location.
# Ensure DOWNLOAD_DIR is correctly set and not empty or root.
if [ -z "$DOWNLOAD_DIR" ] || [ "$DOWNLOAD_DIR" = "/" ]; then
echo "Error: DOWNLOAD_DIR is not set correctly."
exit 1