This commit is contained in:
mguschin
2026-02-02 19:52:58 +03:00
parent f74a5041f8
commit 053fa62395
26 changed files with 866 additions and 0 deletions

21
run/evo/get-stores.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/constants.sh
source $SCRIPT_DIR/functions.sh
# Setup logging
setup_logging
# Trap signals to ensure proper cleanup
trap 'cleanup 1' HUP INT QUIT TERM
path=$EVO_STORES_PATH/$EVO_API_STORE_ID
printf -v fileName "$EVO_RESPONSE_FILE_NAME_FORMAT.$EVO_RESPONSE_FILE_NAME_EXT" -1
mkdir -p $path
# Handle request for stores
handle_request "stores" "$EVO_API_GET_STORES" "$path" "$fileName"
# Use the cleanup function instead of directly exiting
cleanup 0