1 #!/usr/bin/env bash 2 3 # exit on error 4 set -euo pipefail 5 6 # change directory 7 cd $(dirname -- "${BASH_SOURCE[0]}") 8 9 currenttime=$(date +%H:%M) 10 if [[ "$currenttime" > "$2" || "$currenttime" < "$1" ]]; then 11 ./switch-themes.sh "dark" 12 else 13 ./switch-themes.sh "light" 14 fi