Fix storage path in state machine helper

This commit is contained in:
Robin Meier 2024-03-20 13:57:32 +01:00
parent 7584422e8e
commit 6c07338283
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ set -o allexport
source ${script_dir}/../config/state_machine source ${script_dir}/../config/state_machine
set +o allexport set +o allexport
mkdir -p ${script_dir}/storage/state_machine mkdir -p ${script_dir}/../storage/state_machine
# Get input from standard input or via first parameter # Get input from standard input or via first parameter
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
@ -38,7 +38,7 @@ if [[ -z "${key}" ]]; then
exit 1 exit 1
fi fi
key_file="${script_dir}/storage/state_machine/${key}.txt" key_file="${script_dir}/../storage/state_machine/${key}.txt"
if [[ -f $key_file && -z "${message}" ]]; then if [[ -f $key_file && -z "${message}" ]]; then
# Previous message present and empty message now # Previous message present and empty message now