Skip to content

Commit

Permalink
use a more descriptive Name
Browse files Browse the repository at this point in the history
  • Loading branch information
henne49 committed Dec 15, 2024
1 parent c475fbd commit b208aae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#Script Directory
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
#Define the version filename
FILENAME=$(realpath $SCRIPT_DIR/../version.txt)
CODE_VERSION_FILE=$(realpath $SCRIPT_DIR/../version.txt)
exec 2>&1
#Check if the file exists
if [ -f "$FILENAME" ]; then
if [ -f "$CODE_VERSION_FILE" ]; then
#If the file exists, print its contents to stdout
cat "$FILENAME"
cat "$CODE_VERSION_FILE"
fi
python $(realpath $SCRIPT_DIR/../dbus_opendtu.py)
python $(realpath $SCRIPT_DIR/../dbus_opendtu.py)

0 comments on commit b208aae

Please sign in to comment.