This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Get a random music file from modarchive.org and play it. | |
# Uses VLC. Many other players could work too. | |
# Check for needed programs. Exit if they are not found. | |
#if ! which xmp > /dev/null; then echo "xmp not installed. Try: apt install xmp"; exit 1; fi | |
if ! which vlc > /dev/null; then echo "VLC not installed. Try: apt install vlc"; exit 1; fi | |
if ! which curl > /dev/null; then echo "curl not installed. Try: apt install curl"; exit 1; fi | |
# Check if the user wants a specific module |