Fix storage path in state machine helper
This commit is contained in:
parent
7584422e8e
commit
6c07338283
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue