This file contains 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
#!/bin/bash | |
# Check if DAILYLOG_DIR exists. | |
if [[ ! -z $DAILYLOG_DIR ]]; then | |
echo "Creating a new log at" "$DAILYLOG_DIR" | |
else | |
echo "Please enter directory to store logs:" | |
# tput is used to set colour and bold font - experimental turns all text to bold red | |
# trap 'echo -e $(tput bold)$(tput setaf 196)"NOTE: Path should be relative from ~/ i.e. home"' DEBUG | |
echo -e "NOTE: Path should be relative from ~/ i.e. home" |