Initial tableting structure

This commit is contained in:
2023-03-29 19:44:01 -05:00
parent 0f1b0a9b94
commit c5d80b6c25
36 changed files with 284 additions and 80 deletions

29
user_config/bin/coherence Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
call_path=`pwd`
path=""
if [[ ! "${1::1}" == /* ]]; then
path="${call_path}/${1}"
else
path="${1}"
fi
# NOTE: Remove if you want to pass file(s) besides directories...
if [ ! -d "${path}" ]; then
echo "Coherence: Path given not a directory..."
exit 1
fi
cd "/opt/"
python /opt/coherence.zip "$@"
}
main "$@";