Skip to content

Commit

Permalink
Merge pull request #1038 from thomasjacquin/ON_TTY
Browse files Browse the repository at this point in the history
generateForDay.sh: use $ON_TTY
  • Loading branch information
EricClaeys authored Feb 18, 2022
2 parents 3b96d58 + 2a50fa9 commit 0a9817a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generateForDay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ source "${ALLSKY_CONFIG}/config.sh"
[ "${TYPE}" = "UPLOAD" ] && source "${ALLSKY_CONFIG}/ftp-settings.sh"

# If we're on a tty we are being invoked manually so no need to display ${ME} in error messages.
if tty --silent ; then
if [ "${ON_TTY}" = "1" ]; then
ME=""
else
ME="${ME_USAGE}: " # include trailing space
Expand Down

0 comments on commit 0a9817a

Please sign in to comment.