Still getting the hang of this bash stuff

This commit is contained in:
Tech Priest 2024-07-26 02:06:02 +00:00
parent 9347ee31aa
commit 6887684fa7

2
loggit
View file

@ -14,7 +14,7 @@ set -e
readonly NOTES_DIRECTORY="${NOTES_DIRECTORY:-${HOME}/loggit}" readonly NOTES_DIRECTORY="${NOTES_DIRECTORY:-${HOME}/loggit}"
readonly NOTES_EDITOR="${EDITOR:-nano}" readonly NOTES_EDITOR="${EDITOR:-nano}"
readonly NOTES_FILE="$Log.txt" readonly NOTES_FILE="Log.txt"
readonly NOTES_PATH="${NOTES_DIRECTORY}/${NOTES_FILE}" readonly NOTES_PATH="${NOTES_DIRECTORY}/${NOTES_FILE}"
if [ ! -d "${NOTES_DIRECTORY}" ]; then if [ ! -d "${NOTES_DIRECTORY}" ]; then