Skip to content

Commit

Permalink
Merge pull request #1018 from thomasjacquin/variables.sh-ME
Browse files Browse the repository at this point in the history
variables.sh: don't overwrite $ME
  • Loading branch information
linuxkidd authored Feb 12, 2022
2 parents f23c04b + af8c3ab commit d5381ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ "${ALLSKY_VARIABLE_SET}" = "" ]; then

ALLSKY_VARIABLE_SET="true" # so we only do the following once

ME="$(basename "${BASH_SOURCE[0]}")"
ME2="$(basename "${BASH_SOURCE[0]}")"

# Set colors used by many scripts in output.
# If we're not on a tty output is likely being written to a file, so don't use colors.
Expand All @@ -29,7 +29,7 @@ if [ "${ALLSKY_VARIABLE_SET}" = "" ]; then

if [ "${ALLSKY_HOME}" = "" ] ; then # This must come after setting colors above
echo -en "${RED}"
echo -n "${ME}: ERROR: ALLSKY_HOME not set! Exiting..."
echo -n "${ME2}: ERROR: ALLSKY_HOME not set! Exiting..."
echo -e "${NC}"
exit 1
fi
Expand Down

0 comments on commit d5381ec

Please sign in to comment.